| <class 'django.core.exceptions.ImproperlyConfigured'> | Python 2.5: /home/sheepeatingtaz/opt/bin/python Thu Feb 23 16:57:06 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/.fidde/sheepeatingtaz/blog.sheepeatingtaz.co.uk/fcgi.py in run(self=<fcgi.Request object at 0xa64850>) |
| 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 0xa64850>, self.server = <fcgi.WSGIServer object at 0xa64750>, self.server.handler = <bound method WSGIServer.handler of <fcgi.WSGIServer object at 0xa64750>> |
| /home/.fidde/sheepeatingtaz/blog.sheepeatingtaz.co.uk/fcgi.py in handler(self=<fcgi.WSGIServer object at 0xa64750>, req=<fcgi.Request object at 0xa64850>) |
| 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 0xa64750>, self.application = <django.core.handlers.wsgi.WSGIHandler object at 0xa64390>, environ = {'DH_USER': 'sheepeatingtaz', 'DOCUMENT_ROOT': '/home/sheepeatingtaz/blog.sheepeatingtaz.co.uk', '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': 'blog.sheepeatingtaz.co.uk', ...}, start_response = <function start_response at 0x3551fec62a8> |
| /home/sheepeatingtaz/django_src/django/core/handlers/wsgi.py in __call__(self=<django.core.handlers.wsgi.WSGIHandler object at 0xa64390>, environ={'DH_USER': 'sheepeatingtaz', 'DOCUMENT_ROOT': '/home/sheepeatingtaz/blog.sheepeatingtaz.co.uk', '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': 'blog.sheepeatingtaz.co.uk', ...}, start_response=<function start_response at 0x3551fec62a8>) |
| 228 # Check that middleware is still uninitialised. |
| 229 if self._request_middleware is None: |
| 230 self.load_middleware() |
| 231 self.initLock.release() |
| 232 |
| self = <django.core.handlers.wsgi.WSGIHandler object at 0xa64390>, self.load_middleware = <bound method WSGIHandler.load_middleware of <dj...re.handlers.wsgi.WSGIHandler object at 0xa64390>> |
| /home/sheepeatingtaz/django_src/django/core/handlers/base.py in load_middleware(self=<django.core.handlers.wsgi.WSGIHandler object at 0xa64390>) |
| 38 mw_module, mw_classname = middleware_path[:dot], middleware_path[dot+1:] |
| 39 try: |
| 40 mod = import_module(mw_module) |
| 41 except ImportError, e: |
| 42 raise exceptions.ImproperlyConfigured, 'Error importing middleware %s: "%s"' % (mw_module, e) |
| mod = <module 'django.middleware.common' from '/home/s...tingtaz/django_src/django/middleware/common.pyc'>, global import_module = <function import_module at 0x85cd70>, mw_module = 'middleware.dynamicsite' |
| /home/sheepeatingtaz/django_src/django/utils/importlib.py in import_module(name='middleware.dynamicsite', package=None) |
| 32 break |
| 33 level += 1 |
| 34 name = _resolve_name(name[level:], package, level) |
| 35 __import__(name) |
| 36 return sys.modules[name] |
| builtin __import__ = <built-in function __import__>, name = 'middleware.dynamicsite' |
| /home/sheepeatingtaz/django_projects/byteflow/apps/middleware/dynamicsite.py in |
| 2 |
| 3 from django.contrib.sites.models import Site |
| 4 from django.conf import settings |
| 5 |
| 6 HOST_CACHE = {} |
| django undefined, Site undefined |
| /home/sheepeatingtaz/django_src/django/contrib/sites/models.py in |
| 2 from django.utils.translation import ugettext_lazy as _ |
| 3 |
| 4 SITE_CACHE = {} |
| 5 |
| 6 class SiteManager(models.Manager): |
| django undefined, models undefined |
| /home/sheepeatingtaz/django_src/django/db/__init__.py in |
| 39 raise # If there's some other error, this must be an error in Django itself. |
| 40 |
| 41 backend = load_backend(settings.DATABASE_ENGINE) |
| 42 |
| 43 # `connection`, `DatabaseError` and `IntegrityError` are convenient aliases |
| backend undefined, load_backend = None, settings = None, settings.DATABASE_ENGINE undefined |
| /home/sheepeatingtaz/django_src/django/db/__init__.py in load_backend(backend_name='mysql') |
| 15 # Most of the time, the database backend will be one of the official |
| 16 # backends that ships with Django, so look there first. |
| 17 return import_module('.base', 'django.db.backends.%s' % backend_name) |
| 18 except ImportError, e: |
| 19 # If the import failed, we might be looking for a database backend |
| global import_module = None, backend_name = 'mysql' |
| /home/sheepeatingtaz/django_src/django/utils/importlib.py in import_module(name='django.db.backends.mysql.base', package='django.db.backends.mysql') |
| 32 break |
| 33 level += 1 |
| 34 name = _resolve_name(name[level:], package, level) |
| 35 __import__(name) |
| 36 return sys.modules[name] |
| builtin __import__ = <built-in function __import__>, name = 'django.db.backends.mysql.base' |
| /home/sheepeatingtaz/django_src/django/db/backends/mysql/base.py in |
| 11 except ImportError, e: |
| 12 from django.core.exceptions import ImproperlyConfigured |
| 13 raise ImproperlyConfigured("Error loading MySQLdb module: %s" % e) |
| 14 |
| 15 # We want version (1, 2, 1, 'final', 2) or later. We can't just use |
| ImproperlyConfigured = None, e = None |
<class 'django.core.exceptions.ImproperlyConfigured'>: Error loading MySQLdb module: libmysqlclient_r.so.15: cannot open shared object file: No such file or directory