94. # If the view raised an exception, run it through exception
95. # middleware, and if the exception middleware returns a
96. # response, use that. Otherwise, reraise the exception.
97. for middleware_method inself._exception_middleware:
98. response = middleware_method(request, e)
▶ Local vars
Variable Value
callback
<function index at 0x7f5e38eed140>
callback_args
()
callback_kwargs
{}
e
TemplateSyntaxError(u'Caught an exception while rendering: user',)
exc_info
(<class 'django.template.TemplateSyntaxError'>, TemplateSyntaxError(u'Caught an exception while rendering: user',), <traceback object at 0x7f5e3a165dd0>)
You're seeing this error because you have DEBUG = True in your Django settings file. Change that to False, and Django will display a standard 500 page.