| <class 'django.core.exceptions.ImproperlyConfigured'> | Python 2.7.2: /usr/bin/python Wed Feb 8 21:40:19 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.
| /usr/lib/python2.7/site-packages/flup/server/fcgi_base.py in run(self=<flup.server.fcgi_base.Request object>) |
| 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>, self.server = <flup.server.fcgi.WSGIServer object>, self.server.handler = <bound method WSGIServer.handler of <flup.server.fcgi.WSGIServer object>> |
| /usr/lib/python2.7/site-packages/flup/server/fcgi_base.py in handler(self=<flup.server.fcgi.WSGIServer object>, req=<flup.server.fcgi_base.Request object>) |
| 1116 try: |
| 1117 try: |
| => 1118 result = self.application(environ, start_response) |
| 1119 try: |
| 1120 for data in result: |
| result = None, self = <flup.server.fcgi.WSGIServer object>, self.application = <django.core.handlers.wsgi.WSGIHandler object>, environ = {'DOCUMENT_ROOT': '/home/httpd/html/jubilee.carcosa.net/', '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': 'jubilee.carcosa.net', 'HTTP_PRAGMA': 'no-cache', ...}, start_response = <function start_response> |
| /usr/lib/python2.7/site-packages/django/core/handlers/wsgi.py in __call__(self=<django.core.handlers.wsgi.WSGIHandler object>, environ={'DOCUMENT_ROOT': '/home/httpd/html/jubilee.carcosa.net/', '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': 'jubilee.carcosa.net', 'HTTP_PRAGMA': 'no-cache', ...}, start_response=<function start_response>) |
| 248 # Check that middleware is still uninitialised. |
| 249 if self._request_middleware is None: |
| => 250 self.load_middleware() |
| 251 except: |
| 252 # Unload whatever middleware we got |
| self = <django.core.handlers.wsgi.WSGIHandler object>, self.load_middleware = <bound method WSGIHandler.load_middleware of <django.core.handlers.wsgi.WSGIHandler object>> |
| /usr/lib/python2.7/site-packages/django/core/handlers/base.py in load_middleware(self=<django.core.handlers.wsgi.WSGIHandler object>) |
| 45 mod = import_module(mw_module) |
| 46 except ImportError, e: |
| => 47 raise exceptions.ImproperlyConfigured('Error importing middleware %s: "%s"' % (mw_module, e)) |
| 48 try: |
| 49 mw_class = getattr(mod, mw_classname) |
| exceptions = <module 'django.core.exceptions' from '/usr/lib/python2.7/site-packages/django/core/exceptions.pyc'>, exceptions.ImproperlyConfigured = <class 'django.core.exceptions.ImproperlyConfigured'>, mw_module = 'django.contrib.flatpages.middleware', e = ImportError('cannot import name utils',) |
<class 'django.core.exceptions.ImproperlyConfigured'>: Error importing middleware django.contrib.flatpages.middleware: "cannot import name utils"
args =
('Error importing middleware django.contrib.flatpages.middleware: "cannot import name utils"',)
message =
'Error importing middleware django.contrib.flatpages.middleware: "cannot import name utils"'