ght NoReverseMatch 错误:谨慎渲染:“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),
)