I'm having an odd issue when I start up my project using apache/wsgi. The project works fine when using the development server, but when I load it up in apache it states that mysql is "'django.db.backends.mysql' isn't an available database backend.".
Here is my db config (edited to remove user/pass): DATABASES = { 'default': { 'ENGINE': 'django.db.backends.mysql', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'. 'NAME': 'baz', # Or path to database file if using sqlite3. 'USER': 'foo', # Not used with sqlite3. 'PASSWORD': 'bar', # Not used with sqlite3. 'HOST': 'localhost', # Set to empty string for localhost. Not used with sqlite3. 'PORT': '', # Set to empty string for default. Not used with sqlite3. } } here is my wsgi file: import os import sys os.environ['DJANGO_SETTINGS_MODULE'] = 'baz.settings' os.environ['PYTHON_EGG_CACHE'] = '/var/www/baz/.egg' sys.path.append('/var/www') sys.path.append('/usr/lib64/python2.4/site-packages/') import django.core.handlers.wsgi application = django.core.handlers.wsgi.WSGIHandler() Anything I'm missing? Here is the more verbose output: Environment: Request Method: GET Request URL: http://10.1.18.30/admin/ Django Version: 1.2.3 Python Version: 2.4.3 Installed Applications: ['django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'django.contrib.messages'] Installed Middleware: ('django.middleware.common.CommonMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware') Traceback: File "/usr/lib/python2.4/site-packages/django/core/handlers/base.py" in get_response 80. response = middleware_method(request) File "/usr/lib/python2.4/site-packages/django/contrib/sessions/ middleware.py" in process_request 10. engine = import_module(settings.SESSION_ENGINE) File "/usr/lib/python2.4/site-packages/django/utils/importlib.py" in import_module 35. __import__(name) File "/usr/lib/python2.4/site-packages/django/contrib/sessions/ backends/db.py" in ? 3. from django.contrib.sessions.models import Session File "/usr/lib/python2.4/site-packages/django/contrib/sessions/ models.py" in ? 4. from django.db import models File "/usr/lib/python2.4/site-packages/django/db/__init__.py" in ? 77. connection = connections[DEFAULT_DB_ALIAS] File "/usr/lib/python2.4/site-packages/django/db/utils.py" in __getitem__ 91. backend = load_backend(db['ENGINE']) File "/usr/lib/python2.4/site-packages/django/db/utils.py" in load_backend 49. raise ImproperlyConfigured(error_msg) Exception Type: ImproperlyConfigured at /admin/ Exception Value: 'django.db.backends.mysql' isn't an available database backend. Try using django.db.backends.XXX, where XXX is one of: 'dummy', 'mysql', 'oracle', 'postgresql', 'postgresql_psycopg2', 'sqlite3' Error was: cannot import name utils -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.