1

好吧,我一次又一次地收到这个 500 错误。一切似乎都工作了几天,但是当我现在尝试在浏览器中加载网站时,它返回了 500。Apache 日志不是描述性的,我只能看到:

Sun May 26 20:39:34 2013] [error] [client 188.134.73.102] mod_wsgi (pid=5087): Exception occurred processing WSGI script '/var/www/empirik/data/www/mywebsite.com.ru/myproject/wsgi.py'.
[Sun May 26 20:39:34 2013] [error] [client 188.134.73.102] Traceback (most recent call last):
[Sun May 26 20:39:34 2013] [error] [client 188.134.73.102]   File "/usr/local/lib/python2.7/site-packages/django/core/handlers/wsgi.py", line 241, in __call__
[Sun May 26 20:39:34 2013] [error] [client 188.134.73.102]     response = self.get_response(request)
[Sun May 26 20:39:34 2013] [error] [client 188.134.73.102]   File "/usr/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 179, in get_response
[Sun May 26 20:39:34 2013] [error] [client 188.134.73.102]     response = self.handle_uncaught_exception(request, resolver, sys.exc_info())
[Sun May 26 20:39:34 2013] [error] [client 188.134.73.102]   File "/usr/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 228, in handle_uncaught_exception
[Sun May 26 20:39:34 2013] [error] [client 188.134.73.102]     return callback(request, **param_dict)
[Sun May 26 20:39:34 2013] [error] [client 188.134.73.102]   File "/usr/local/lib/python2.7/site-packages/django/utils/decorators.py", line 91, in _wrapped_view
[Sun May 26 20:39:34 2013] [error] [client 188.134.73.102]     response = view_func(request, *args, **kwargs)
[Sun May 26 20:39:34 2013] [error] [client 188.134.73.102]   File "/usr/local/lib/python2.7/site-packages/django/views/defaults.py", line 32, in server_error
[Sun May 26 20:39:34 2013] [error] [client 188.134.73.102]     t = loader.get_template(template_name) # You need to create a 500.html template.
[Sun May 26 20:39:34 2013] [error] [client 188.134.73.102]   File "/usr/local/lib/python2.7/site-packages/django/template/loader.py", line 145, in get_template
[Sun May 26 20:39:34 2013] [error] [client 188.134.73.102]     template, origin = find_template(template_name)
[Sun May 26 20:39:34 2013] [error] [client 188.134.73.102]   File "/usr/local/lib/python2.7/site-packages/django/template/loader.py", line 138, in find_template
[Sun May 26 20:39:34 2013] [error] [client 188.134.73.102]     raise TemplateDoesNotExist(name)
[Sun May 26 20:39:34 2013] [error] [client 188.134.73.102] TemplateDoesNotExist: 500.html

除了这个 TemplateDoesNotExist 异常,还有什么方法可以获取更具体的信息吗?

4

1 回答 1

0

好吧,感谢alecxe,我找到了问题的原因。在DEBUG = False.

于 2013-05-26T17:34:20.730 回答