When I type the following as the normal python function, it returns the
correct things:
>>> pattern =
re.compile(r'^account_activation\?user_id=(?P<user_id>[0-9]+)&auth_key=(?P<auth_key>[0-9a-zA-Z]+)$')
>>> match =
pattern.match("account_activation?user_id=36&auth_key=f9717d96aa4e3452a47955225a60862d07119702")
>>> match.groupdict()
{'auth_key': 'f9717d96aa4e3452a47955225a60862d07119702', 'user_id': '36'}
However, when I do this in the Django URL mapping:
url(r'^account_activation?user_id=(?P<user_id>[0-9]+)&auth_key=(?P<auth_key>[0-9a-zA-Z]+)$',
'activate_registration'),
It seems like the question mark is causing the url mapping not found issue.
Does anyone know why.
Thanks very much
Best regards
--
⚡ Chen Xu ⚡
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected].
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.