| <class 'django.template.TemplateDoesNotExist'> | Python 2.6.2: /usr/bin/X11/python Wed Sep 8 23:12:04 2010 |
A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.
| /var/lib/python-support/python2.6/flup/server/fcgi_base.py in run(self=<flup.server.fcgi_base.Request object at 0xab56dac>) |
| 556 """Runs the handler, flushes the streams, and ends the request.""" |
| 557 try: |
| 558 protocolStatus, appStatus = self.server.handler(self) |
| 559 except: |
| 560 traceback.print_exc(file=self.stderr) |
| protocolStatus undefined, appStatus undefined, self = <flup.server.fcgi_base.Request object at 0xab56dac>, self.server = <flup.server.fcgi_fork.WSGIServer object at 0xa86e10c>, self.server.handler = <bound method WSGIServer.handler of <flup.server.fcgi_fork.WSGIServer object at 0xa86e10c>> |
| /var/lib/python-support/python2.6/flup/server/fcgi_base.py in handler(self=<flup.server.fcgi_fork.WSGIServer object at 0xa86e10c>, req=<flup.server.fcgi_base.Request object at 0xab56dac>) |
| 1114 try: |
| 1115 try: |
| 1116 result = self.application(environ, start_response) |
| 1117 try: |
| 1118 for data in result: |
| result = None, self = <flup.server.fcgi_fork.WSGIServer object at 0xa86e10c>, self.application = <django.core.handlers.wsgi.WSGIHandler object at 0xa86e0ec>, environ = {'DOCUMENT_ROOT': '/var/www/mixamag.com/www/', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_ACCEPT_ENCODING': 'gzip', 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'HTTP_CACHE_CONTROL': 'no-cache', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'www.mixamag.it', 'HTTP_PRAGMA': 'no-cache', ...}, start_response = <function start_response at 0xade7bc4> |
| /opt/django/django/core/handlers/wsgi.py in __call__(self=<django.core.handlers.wsgi.WSGIHandler object at 0xa86e0ec>, environ={'DOCUMENT_ROOT': '/var/www/mixamag.com/www/', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_ACCEPT_ENCODING': 'gzip', 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'HTTP_CACHE_CONTROL': 'no-cache', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'www.mixamag.it', 'HTTP_PRAGMA': 'no-cache', ...}, start_response=<function start_response at 0xade7bc4>) |
| 239 response = http.HttpResponseBadRequest() |
| 240 else: |
| 241 response = self.get_response(request) |
| 242 |
| 243 # Apply response middleware |
| response undefined, self = <django.core.handlers.wsgi.WSGIHandler object at 0xa86e0ec>, self.get_response = <bound method WSGIHandler.get_response of <djang...e.handlers.wsgi.WSGIHandler object at 0xa86e0ec>>, request = <WSGIRequest GET:<QueryDict: {}>, POST:<QueryDic...gi.url_scheme': 'http', 'wsgi.version': (1, 0)}> |
| /opt/django/django/core/handlers/base.py in get_response(self=<django.core.handlers.wsgi.WSGIHandler object at 0xa86e0ec>, request=<WSGIRequest GET:<QueryDict: {}>, POST:<QueryDic...gi.url_scheme': 'http', 'wsgi.version': (1, 0)}>) |
| 132 exc_info = sys.exc_info() |
| 133 receivers = signals.got_request_exception.send(sender=self.__class__, request=request) |
| 134 return self.handle_uncaught_exception(request, resolver, exc_info) |
| 135 |
| 136 def handle_uncaught_exception(self, request, resolver, exc_info): |
| self = <django.core.handlers.wsgi.WSGIHandler object at 0xa86e0ec>, self.handle_uncaught_exception = <bound method WSGIHandler.handle_uncaught_except...e.handlers.wsgi.WSGIHandler object at 0xa86e0ec>>, request = <WSGIRequest GET:<QueryDict: {}>, POST:<QueryDic...gi.url_scheme': 'http', 'wsgi.version': (1, 0)}>, resolver = <RegexURLResolver mixaweb.urls (None:None) ^/>, exc_info = (<type 'exceptions.AttributeError'>, AttributeError("'function' object has no attribute '_meta'",), <traceback object at 0xaadae3c>) |
| /opt/django/django/core/handlers/base.py in handle_uncaught_exception(self=<django.core.handlers.wsgi.WSGIHandler object at 0xa86e0ec>, request=<WSGIRequest GET:<QueryDict: {}>, POST:<QueryDic...gi.url_scheme': 'http', 'wsgi.version': (1, 0)}>, resolver=<RegexURLResolver mixaweb.urls (None:None) ^/>, exc_info=(<type 'exceptions.AttributeError'>, AttributeError("'function' object has no attribute '_meta'",), <traceback object at 0xaadae3c>)) |
| 164 # Return an HttpResponse that displays a friendly error message. |
| 165 callback, param_dict = resolver.resolve500() |
| 166 return callback(request, **param_dict) |
| 167 |
| 168 def _get_traceback(self, exc_info=None): |
| callback = <function server_error at 0xa9b9f44>, request = <WSGIRequest GET:<QueryDict: {}>, POST:<QueryDic...gi.url_scheme': 'http', 'wsgi.version': (1, 0)}>, param_dict = {} |
| /opt/django/django/views/defaults.py in server_error(request=<WSGIRequest GET:<QueryDict: {}>, POST:<QueryDic...gi.url_scheme': 'http', 'wsgi.version': (1, 0)}>, template_name='500.html') |
| 21 Context: None |
| 22 """ |
| 23 t = loader.get_template(template_name) # You need to create a 500.html template. |
| 24 return http.HttpResponseServerError(t.render(Context({}))) |
| 25 |
| t undefined, global loader = <module 'django.template.loader' from '/opt/django/django/template/loader.pyc'>, loader.get_template = <function get_template at 0xa5221b4>, template_name = '500.html' |
| /opt/django/django/template/loader.py in get_template(template_name='500.html') |
| 79 handling template inheritance recursively. |
| 80 """ |
| 81 source, origin = find_template_source(template_name) |
| 82 template = get_template_from_string(source, origin, template_name) |
| 83 return template |
| source undefined, origin undefined, global find_template_source = <function find_template_source at 0xa52217c>, template_name = '500.html' |
| /opt/django/django/template/loader.py in find_template_source(name='500.html', dirs=None) |
| 72 except TemplateDoesNotExist: |
| 73 pass |
| 74 raise TemplateDoesNotExist, name |
| 75 |
| 76 def get_template(template_name): |
| global TemplateDoesNotExist = <class 'django.template.TemplateDoesNotExist'>, name = '500.html' |
<class 'django.template.TemplateDoesNotExist'>: 500.html
args =
('500.html',)
message =
'500.html'