<class 'django.template.TemplateDoesNotExist'>
Python 2.6.2: /usr/bin/python
Sun Aug 1 01:35:26 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.

 /usr/local/lib/python2.6/dist-packages/flup-1.0.2-py2.6.egg/flup/server/fcgi_base.py in run(self=<flup.server.fcgi_base.Request object at 0x9b8d3cc>)
  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 0x9b8d3cc>, self.server = <flup.server.fcgi_fork.WSGIServer object at 0x990778c>, self.server.handler = <bound method WSGIServer.handler of <flup.server.fcgi_fork.WSGIServer object at 0x990778c>>
 /usr/local/lib/python2.6/dist-packages/flup-1.0.2-py2.6.egg/flup/server/fcgi_base.py in handler(self=<flup.server.fcgi_fork.WSGIServer object at 0x990778c>, req=<flup.server.fcgi_base.Request object at 0x9b8d3cc>)
 1116         try:
 1117             try:
 1118                 result = self.application(environ, start_response)
 1119                 try:
 1120                     for data in result:
result = None, self = <flup.server.fcgi_fork.WSGIServer object at 0x990778c>, self.application = <django.core.handlers.wsgi.WSGIHandler object at 0x990772c>, environ = {'CONTENT_LENGTH': '', 'CONTENT_TYPE': '', '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': 'moznalepiej.pl', 'HTTP_PRAGMA': 'no-cache', ...}, start_response = <function start_response at 0x968f2cc>
 /usr/local/lib/python2.6/dist-packages/django/core/handlers/wsgi.py in __call__(self=<django.core.handlers.wsgi.WSGIHandler object at 0x990772c>, environ={'CONTENT_LENGTH': '', 'CONTENT_TYPE': '', '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': 'moznalepiej.pl', 'HTTP_PRAGMA': 'no-cache', ...}, start_response=<function start_response at 0x968f2cc>)
  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 0x990772c>, self.get_response = <bound method WSGIHandler.get_response of <djang...e.handlers.wsgi.WSGIHandler object at 0x990772c>>, request = <WSGIRequest GET:<QueryDict: {}>, POST:<QueryDic...gi.url_scheme': 'http', 'wsgi.version': (1, 0)}>
 /usr/local/lib/python2.6/dist-packages/django/core/handlers/base.py in get_response(self=<django.core.handlers.wsgi.WSGIHandler object at 0x990772c>, request=<WSGIRequest GET:<QueryDict: {}>, POST:<QueryDic...gi.url_scheme': 'http', 'wsgi.version': (1, 0)}>)
  129                     except:
  130                         try:
  131                             return self.handle_uncaught_exception(request, resolver, sys.exc_info())
  132                         finally:
  133                             receivers = signals.got_request_exception.send(sender=self.__class__, request=request)
self = <django.core.handlers.wsgi.WSGIHandler object at 0x990772c>, self.handle_uncaught_exception = <bound method WSGIHandler.handle_uncaught_except...e.handlers.wsgi.WSGIHandler object at 0x990772c>>, request = <WSGIRequest GET:<QueryDict: {}>, POST:<QueryDic...gi.url_scheme': 'http', 'wsgi.version': (1, 0)}>, resolver = <RegexURLResolver subscriptions.urls (None:None) ^/>, global sys = <module 'sys' (built-in)>, sys.exc_info = <built-in function exc_info>
 /usr/local/lib/python2.6/dist-packages/django/core/handlers/base.py in handle_uncaught_exception(self=<django.core.handlers.wsgi.WSGIHandler object at 0x990772c>, request=<WSGIRequest GET:<QueryDict: {}>, POST:<QueryDic...gi.url_scheme': 'http', 'wsgi.version': (1, 0)}>, resolver=<RegexURLResolver subscriptions.urls (None:None) ^/>, exc_info=(<class 'django.template.TemplateDoesNotExist'>, TemplateDoesNotExist('404.html',), <traceback object at 0x9eed48c>))
  177         # Return an HttpResponse that displays a friendly error message.
  178         callback, param_dict = resolver.resolve500()
  179         return callback(request, **param_dict)
  180 
  181     def _get_traceback(self, exc_info=None):
callback = <function server_error at 0x9ad1534>, request = <WSGIRequest GET:<QueryDict: {}>, POST:<QueryDic...gi.url_scheme': 'http', 'wsgi.version': (1, 0)}>, param_dict = {}
 /usr/local/lib/python2.6/dist-packages/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 '/usr/loca...hon2.6/dist-packages/django/template/loader.pyc'>, loader.get_template = <function get_template at 0x9891aac>, template_name = '500.html'
 /usr/local/lib/python2.6/dist-packages/django/template/loader.py in get_template(template_name='500.html')
  142     handling template inheritance recursively.
  143     """
  144     template, origin = find_template(template_name)
  145     if not hasattr(template, 'render'):
  146         # template needs to be compiled
template undefined, origin undefined, global find_template = <function find_template at 0x9891a3c>, template_name = '500.html'
 /usr/local/lib/python2.6/dist-packages/django/template/loader.py in find_template(name='500.html', dirs=None)
  123         except TemplateDoesNotExist:
  124             pass
  125     raise TemplateDoesNotExist(name)
  126 
  127 def find_template_source(name, dirs=None):
global TemplateDoesNotExist = <class 'django.template.TemplateDoesNotExist'>, name = '500.html'

<class 'django.template.TemplateDoesNotExist'>: 500.html
      args = ('500.html',)
      message = '500.html'