urls.py
url(r'^some/page/$', views.some_page,
{'template_name': 'some/page.html'},
name='some_page'),
views.py
url = request.build_absolute_uri(reverse('some_page')).lower()
response = HttpResponseRedirect(url)
return response
问题: 为什么这段代码不起作用?
url = request.build_absolute_uri(reverse('some_page',
kwargs={"template_name": "another/page.html"})).lower()
我在google appengine上使用django 1.2。由于我因任何类型的错误/错误而得到相同的错误,我认为在此处粘贴该错误消息并不有用。
感谢。