我需要为下面的URL定义一个URL模式
http://myurl:8080/authentication/agent/newpassword/?resetPassword=textValue&agentCode=textValue
我试过以下方法,但得到404
url(r'^authentication/agent/newpassword/(?P<resetPassword>.+)(P<agentCode>.+)/$', passwordValidation),
我做错什么了。你知道吗
我收到的错误消息是
"GET /authentication/agent/newpassword/?resetPassword=textValue&agentCode=textValue HTTP/1.1" 302 0
无法匹配Django url模式中的查询字符串。你知道吗
使用以下模式:
在视图中,使用
request.GET
获取参数:相关问题 更多 >
编程相关推荐