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 のおかげで、問題の原因がわかりました。のときに必要なのは ALLOWED_HOSTS 機能だけですDEBUG = False

于 2013-05-26T17:34:20.730 に答える