python - Django: I want to recognize a hash url -
i have url http://localhost/user/?hash={hash value generated}
i need configure urls.py url of form recognized , not give error.
i wrote urls.py as
url(r'^user/(?p<hash>\w+)/$', 'myapp.views.createnewpass'),
and giving 404 error valid hash.
how can correct error?
thanks in advance!
well, should clear regex not match url: it's looking urls in form /user/hash/, whereas have /user/?hash=hash.
in case, query parameters (those after ?) not processed urls.py, passed in request.get. urlconf should r'^user/$
.
Comments
Post a Comment