Django urls.py regex doesn't match? -
i'm pretty sure regex correct, somehow cannot capture parameter , complaining no page found/match... i'm stuck, if can me anything...heap thanks
this related part of urls.py
from django.conf.urls import * django.conf.urls.static import static api.views.forgot_password import password_reset url(r'^reset_password/(?p<auth>\w+)/(?p<email>\w+)/$', password_reset),
(?p<email>\w+)
part incorrect. \w
match digits, _
, alphabets (not @
, .
).
use following url:
`^reset_password/(?p<auth>\w+)/(?p<email>[^/]+)/$`
this not strictly match email. not issue because should check email user.email.
Comments
Post a Comment