0

我正在关注本教程:https ://www.infoq.com/articles/graphite-intro

当我执行这一行时,一切都工作到最后:

tail -f /opt/graphite/storage/log/webapp/process.log

我在终端上看到:

django-admin.py runserver --pythonpath /opt/graphite/webapp --settings graphite.settings 0.0.0.0:8085

但随后我用浏览器导航到my_ip:8085my_ip原本可以正常工作的 IP 地址的位置。

然后我在浏览器中收到此错误:

A server error occurred. Please contact the administrator.

在我的终端中,我收到此错误:

[19/Apr/2017 03:48:03] "GET / HTTP/1.1" 500 59
Traceback (most recent call last):
File "/usr/lib64/python2.7/wsgiref/handlers.py", line 85, in run
    self.result = application(self.environ, self.start_response)
File "/usr/lib/python2.7/site-packages/django/core/handlers/wsgi.py", line 241, in __call__
    response = self.get_response(request)
File "/usr/lib/python2.7/site-packages/django/core/handlers/base.py", line 153, in get_response
    response = self.handle_uncaught_exception(request, resolver, sys.exc_info())
File "/usr/lib/python2.7/site-packages/django/core/handlers/base.py", line 228, in handle_uncaught_exception
    return callback(request, **param_dict)
File "/opt/graphite/webapp/graphite/views.py", line 7, in server_error
    template = loader.get_template(template_name)
File "/usr/lib/python2.7/site-packages/django/template/loader.py", line 145, in get_template
    template, origin = find_template(template_name)
File "/usr/lib/python2.7/site-packages/django/template/loader.py", line 138, in find_template
    raise TemplateDoesNotExist(name)
TemplateDoesNotExist: 500.html

如何解决这些错误?

4

0 回答 0