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

Popular posts from this blog

java - org.apache.http.ProtocolException: Target host is not specified -

java - Gradle dependencies: compile project by relative path -

ruby on rails - Object doesn't support #inspect when used with .include -