我无法让RequestContext工作:
Traceback:
File "/Users/Admin/myapp/lib/python2.7/site-packages/django/core/handlers/base.py" in get_response
111. response = callback(request, *callback_args, **callback_kwargs)
File "/Users/Admin/myapp/lib/python2.7/site-packages/django/views/generic/simple.py" in direct_to_template
26. c = RequestContext(request, dictionary)
File "/Users/Admin/myapp/lib/python2.7/site-packages/django/template/context.py" in __init__
176. self.update(processor(request))
Exception Type: TypeError at /
Exception Value: 'module' object is not callable
我将它添加到我的模板上下文处理器中:
TEMPLATE_CONTEXT_PROCESSORS = (
'django.core.context_processors.request',
)
我还能错过什么?
感谢您的想法!