5
我有一個像 http://localhost/user/?hash={hash value generated}
Django的:我想認識一個哈希網址
我需要配置urls.py使這種形式的任何URL被識別,不給錯誤的URL。
我目前寫urls.py作爲
url(r'^user/(?P<hash>\w+)/$', 'Myapp.views.createnewpass'),
,這是給一個404錯誤的一個有效的哈希值。
我該如何糾正這個錯誤?
在此先感謝!
非常感謝。它工作完美。 – 2013-04-05 08:21:14