0
ght NoReverseMatch錯誤:Cauded渲染:顛倒'update_status'參數'()'和關鍵字未找到參數「{}」。捕獲NoReverseMatch錯誤:Caucoming渲染:反向'update_status'參數'()'和關鍵字參數'{}'未找到
我下面的教程:http://blog.pythonanywhere.com/35/
在HTML文件中,
<form method="POST" action="{% url update_status %}" >
<input type="hidden" name="quote" value="{{quote}}" />
<input type="hidden" name="access_token" value="{{access_token}}" />
<input type="submit" value="Set as my status!"/>
</form>
在urls.py:
from django.conf.urls.defaults import patterns, include, url
from regilink.myapp.views import *
urlpatterns = patterns('',
('^$', home),
(r'^update_status/', update_status),
)