python - Regex url pattern for django -
I need to define the URL pattern for the URL below
http: // Myurl: 8080 / authentication / agent / newpassword /? Reset Powered = Text Value and AggressCode = Text Value
I tried the following, but I have 404
url (r '^
What I'm doing wrong here.
/ P>The message receiving the error
"Received / Authentication / Agent / New password / Reset paced = text value and agentcode = text value HTTP / 1.1 "302 0
You match query string with Django url pattern
Use the following pattern:
url (r '^ authentication / agent / newpassword / $', password validation),
< / Pre>and in the view, use the
request to get the GET parameter:
defect password verification (request): reset password = request.GET.get ( 'Resetpassword', '') agentCode = request.GET.get ('agentCode', '')
Comments
Post a Comment