Django urls.py regex doesn't match? -


snapshot

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

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -