在我的urls.py,我有这个条目:的URL没有被匹配的/发现:Django的
url(r'^get-advice/(?P<groupid>[0-9]+)/(?P<catid>[0-9]+)/(?P<style>[a-zA-Z]{6,11})/(?P<zone>[0-9]+)/$', views.give_insight, name='get-advice'),
我希望这会工作:
http://localhost:9000/tips/get-adivce/6/1/sqare/1200
http://localhost:9000/land/get-adivce/6/1/sqare/1
http://localhost:9000/land/get-adivce/6/1/sqare/13
但没有什么正在匹配。以下工作正常:
http://localhost:9000/tips/view-tips/6/1/
的网址:
url(r'^view-tips/(?P<groupid>[0-9]+)/(?P<catid>[0-9]+)/$', views.give_insight, name='view-tips'),
'得到-adivce' ='得到-advice' –