urls.py doesn't do anything with GET or POST requests, its just
regular expression to method mapping.
So you can pass whatever you want to the link, and they will all work.
For example, in your urls.py you have:
(r'^logout$', logout_user)
All these requests will be passed to your logout_user method:
/logout
/logout?next=/home
/logout?next=/home/=bar
def logout_user(request):
# - do your logout routine
next = request.GET.get('next','/home')
return redirect(next)
Hope this helps,
--
Burhan Khalid
On Feb 18, 1:15 pm, galago wrote:
> Is it possible to pass request.path in urls.py? I want to pass it as next
> parameter in logout declaration.
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en.