视图.py:
def demo(request, **kwargs):
print response
......
def test(request):
......
kwargs = {'response': response}
return redirect('demo', **kwargs)
网址.py:
from django.conf.urls import patterns, url
from django.contrib.sitemaps.views import sitemap
urlpatterns = patterns('clients.views',
url(r'^test/', 'test', name='test'),
url(r'^demo/', 'demo', name='demo'),
)
为什么我有这个错误:
/test/ 处的 NoReverseMatch
未找到带有参数“()”和关键字参数“{'response': {u'status': u'ok'}}' 的“演示”的反向操作。
请求方式:POST 请求网址:http://127.0.0.1:8000/test/