| TemplateDoesNotExist | Python 2.4.4: /usr/bin/python2.4 Tue Feb 9 00:42:22 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.
| /home/aii/aiiproperties.com/fcgi.py in run(self=<fcgi.Request object>) |
| 580 """Runs the handler, flushes the streams, and ends the request.""" |
| 581 try: |
| 582 protocolStatus, appStatus = self.server.handler(self) |
| 583 except: |
| 584 traceback.print_exc(file=self.stderr) |
| protocolStatus undefined, appStatus undefined, self = <fcgi.Request object>, self.server = <fcgi.WSGIServer object>, self.server.handler = <bound method WSGIServer.handler of <fcgi.WSGIServer object>> |
| /home/aii/aiiproperties.com/fcgi.py in handler(self=<fcgi.WSGIServer object>, req=<fcgi.Request object>) |
| 1257 self._app_lock.acquire() |
| 1258 try: |
| 1259 result = self.application(environ, start_response) |
| 1260 try: |
| 1261 for data in result: |
| result = None, self = <fcgi.WSGIServer object>, self.application = <django.core.handlers.wsgi.WSGIHandler instance>, environ = {'DH_USER': 'aii', 'DOCUMENT_ROOT': '/home/aii/aiiproperties.com', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': 'text/xml,application/xhtml+xml,text/html;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': 'aiiproperties.com', ...}, start_response = <function start_response> |
| /home/aii/python/django/core/handlers/wsgi.py in __call__(self=<django.core.handlers.wsgi.WSGIHandler instance>, environ={'DH_USER': 'aii', 'DOCUMENT_ROOT': '/home/aii/aiiproperties.com', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': 'text/xml,application/xhtml+xml,text/html;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': 'aiiproperties.com', ...}, start_response=<function start_response>) |
| 143 try: |
| 144 request = WSGIRequest(environ) |
| 145 response = self.get_response(request.path, request) |
| 146 |
| 147 # Apply response middleware |
| response undefined, self = <django.core.handlers.wsgi.WSGIHandler instance>, self.get_response = <bound method WSGIHandler.get_response of <django.core.handlers.wsgi.WSGIHandler instance>>, request = <DjangoRequest GET:<MultiValueDict: {}>, POST:<M...gi.url_scheme': 'http', 'wsgi.version': (1, 0)}>, request.path = '/robots.txt' |
| /home/aii/python/django/core/handlers/base.py in get_response(self=<django.core.handlers.wsgi.WSGIHandler instance>, path='/robots.txt', request=<DjangoRequest GET:<MultiValueDict: {}>, POST:<M...gi.url_scheme': 'http', 'wsgi.version': (1, 0)}>) |
| 93 else: |
| 94 callback, param_dict = resolver.resolve404() |
| 95 return callback(request, **param_dict) |
| 96 except exceptions.PermissionDenied: |
| 97 return http.HttpResponseForbidden('<h1>Permission denied</h1>') |
| callback = <function page_not_found>, request = <DjangoRequest GET:<MultiValueDict: {}>, POST:<M...gi.url_scheme': 'http', 'wsgi.version': (1, 0)}>, param_dict = {} |
| /home/aii/python/django/views/defaults.py in page_not_found(request=<DjangoRequest GET:<MultiValueDict: {}>, POST:<M...gi.url_scheme': 'http', 'wsgi.version': (1, 0)}>, template_name='404.html') |
| 76 The path of the requested URL (e.g., '/app/pages/bad_page/') |
| 77 """ |
| 78 t = loader.get_template(template_name) |
| 79 return http.HttpResponseNotFound(t.render(Context({'request_path': request.path}))) |
| 80 |
| t undefined, global loader = <module 'django.template.loader' from '/home/aii/python/django/template/loader.pyc'>, loader.get_template = <function get_template>, template_name = '404.html' |
| /home/aii/python/django/template/loader.py in get_template(template_name='404.html') |
| 77 handling template inheritance recursively. |
| 78 """ |
| 79 return get_template_from_string(*find_template_source(template_name)) |
| 80 |
| 81 def get_template_from_string(source, origin=None): |
| global get_template_from_string = <function get_template_from_string>, global find_template_source = <function find_template_source>, template_name = '404.html' |
| /home/aii/python/django/template/loader.py in find_template_source(name='404.html', dirs=None) |
| 70 except TemplateDoesNotExist: |
| 71 pass |
| 72 raise TemplateDoesNotExist, name |
| 73 |
| 74 def get_template(template_name): |
| global TemplateDoesNotExist = <class django.template.TemplateDoesNotExist>, name = '404.html' |
TemplateDoesNotExist: 404.html
args =
('404.html',)