for example:
in urls.py, i use " (r'^login/\?next=(?P<next>.+)/$', 'login') " to
parse this url
http://127.0.0.1:8000/user/login/?next=/user/1/add/
but i can't get the value of variable 'next '  in login function

but in python ,there is no problem.
>>> import re
>>> a="login/?next=/user/1/add/"
>>> b=r'^login/\?next=(?P<next>.+)/$'
>>> g=re.compile(b).match(a)
>>> g.group(1)
'/user/1/add'
>>> g.group('next')
'/user/1/add'


--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to