| <class 'django.core.exceptions.ImproperlyConfigured'> | Python 2.5.1: /home/sleazyoc/opt/bin/python Sun May 20 03:27:30 2012 |
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/sleazyoc/icanbuildyourwebsite.com/fcgi.py in run(self=<fcgi.Request object at 0xc6bd50>) |
| 578 """Runs the handler, flushes the streams, and ends the request.""" |
| 579 try: |
| 580 protocolStatus, appStatus = self.server.handler(self) |
| 581 except: |
| 582 traceback.print_exc(file=self.stderr) |
| protocolStatus undefined, appStatus undefined, self = <fcgi.Request object at 0xc6bd50>, self.server = <fcgi.WSGIServer object at 0xba0d10>, self.server.handler = <bound method WSGIServer.handler of <fcgi.WSGIServer object at 0xba0d10>> |
| /home/sleazyoc/icanbuildyourwebsite.com/fcgi.py in handler(self=<fcgi.WSGIServer object at 0xba0d10>, req=<fcgi.Request object at 0xc6bd50>) |
| 1264 try: |
| 1265 try: |
| 1266 result = self.application(environ, start_response) |
| 1267 try: |
| 1268 for data in result: |
| result = None, self = <fcgi.WSGIServer object at 0xba0d10>, self.application = <django.core.handlers.wsgi.WSGIHandler object at 0xba0c90>, environ = {'DH_USER': 'sleazyoc', 'DOCUMENT_ROOT': '/home/sleazyoc/icanbuildyourwebsite.com', '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.icanbuildyourwebsite.com', ...}, start_response = <function start_response at 0x6945224042a8> |
| /home/sleazyoc/django/django_src/django/core/handlers/wsgi.py in __call__(self=<django.core.handlers.wsgi.WSGIHandler object at 0xba0c90>, environ={'DH_USER': 'sleazyoc', 'DOCUMENT_ROOT': '/home/sleazyoc/icanbuildyourwebsite.com', '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.icanbuildyourwebsite.com', ...}, start_response=<function start_response at 0x6945224042a8>) |
| 217 # Check that middleware is still uninitialised. |
| 218 if self._request_middleware is None: |
| 219 self.load_middleware() |
| 220 except: |
| 221 # Unload whatever middleware we got |
| self = <django.core.handlers.wsgi.WSGIHandler object at 0xba0c90>, self.load_middleware = <bound method WSGIHandler.load_middleware of <dj...re.handlers.wsgi.WSGIHandler object at 0xba0c90>> |
| /home/sleazyoc/django/django_src/django/core/handlers/base.py in load_middleware(self=<django.core.handlers.wsgi.WSGIHandler object at 0xba0c90>) |
| 49 mw_class = getattr(mod, mw_classname) |
| 50 except AttributeError: |
| 51 raise exceptions.ImproperlyConfigured('Middleware module "%s" does not define a "%s" class' % (mw_module, mw_classname)) |
| 52 try: |
| 53 mw_instance = mw_class() |
| exceptions = <module 'django.core.exceptions' from '/home/sleazyoc/django/django_src/django/core/exceptions.pyc'>, exceptions.ImproperlyConfigured = <class 'django.core.exceptions.ImproperlyConfigured'>, mw_module = 'django.middleware.csrf', mw_classname = 'CsrfResponseMiddleware' |
<class 'django.core.exceptions.ImproperlyConfigured'>: Middleware module "django.middleware.csrf" does not define a "CsrfResponseMiddleware" class