You can also do this as:
(r^users/activate_user/(?P[^/])/, views.activate_user')
which gets you away from relying on the final equal signs, though it
would allow any characters into the code other than a slash. That
should be okay since the code would not be correct in that case.
- Bob
On Ma
Cheers, thanks a lot Scott, you were right and i resolved ^^
I post, maybe someone could find it useful.
In my view i used the base64 library.
import md5, base64
...
key = md5.new(string).digest()
key = base64.urlsafe_b64encode(key)
validation.md5_
Hi Giuseppe.
> As i said, i need to pass in my URL a variable, wich is the
> result of a md5 digest.
> (no private information... only a validation key).
>
> Obviously i tried with
> (r'^users/activate_user/(?P)/', 'views.register'),
> (r'^users/activate_user/(?P[a-zA-Z0-9%\-]+=)/',
> 'views.reg
3 matches
Mail list logo