I have been able to get django working with the development server. I'm pulling my hair out trying to get it working on my osx 10.4 box with apache/mod_python/mysqldb
I have confirmed that apache works, mod_python works, and mysqldb work stand alone. I was following the django book and created the time example and was able to browse to it through the development server at http://127.0.0.1:8000/time/. I then try to go to it through apache at http://127.0.0.1/mysite/time/ and I get these errors and I feel like I have tried everything (rebuilding mysqldb etc....with a modified _mysql.c without etc) I keep getting: ImproperlyConfigured: Error loading MySQLdb module: bad local file header in /Library/Frameworks/Python.framework/Versions/2.5/lib/ python2.5/site-packages/MySQL_python-1.2.2-py2.5-macosx-10.3-fat.egg Any help would be much appreciated. Here is the full error: MOD_PYTHON ERROR ProcessId: 1439 Interpreter: 'www.myserver.dev' ServerName: 'www.myserver.dev' DocumentRoot: '/Library/WebServer/Documents' URI: '/mysite/time/' Location: '/mysite/' Directory: None Filename: '/Library/WebServer/Documents/mysite' PathInfo: '/time/' Phase: 'PythonHandler' Handler: 'django.core.handlers.modpython' Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/2.5/lib/ python2.5/site-packages/mod_python/importer.py", line 1537, in HandlerDispatch default=default_handler, arg=req, silent=hlist.silent) File "/Library/Frameworks/Python.framework/Versions/2.5/lib/ python2.5/site-packages/mod_python/importer.py", line 1229, in _process_target result = _execute_target(config, req, object, arg) File "/Library/Frameworks/Python.framework/Versions/2.5/lib/ python2.5/site-packages/mod_python/importer.py", line 1128, in _execute_target result = object(arg) File "/Library/Frameworks/Python.framework/Versions/2.5/lib/ python2.5/site-packages/django/core/handlers/modpython.py", line 189, in handler return ModPythonHandler()(req) File "/Library/Frameworks/Python.framework/Versions/2.5/lib/ python2.5/site-packages/django/core/handlers/modpython.py", line 162, in __call__ response = self.get_response(request) File "/Library/Frameworks/Python.framework/Versions/2.5/lib/ python2.5/site-packages/django/core/handlers/base.py", line 64, in get_response response = middleware_method(request) File "/Library/Frameworks/Python.framework/Versions/2.5/lib/ python2.5/site-packages/django/contrib/sessions/middleware.py", line 13, in process_request engine = __import__(settings.SESSION_ENGINE, {}, {}, ['']) File "/Library/Frameworks/Python.framework/Versions/2.5/lib/ python2.5/site-packages/django/contrib/sessions/backends/db.py", line 2, in <module> from django.contrib.sessions.models import Session File "/Library/Frameworks/Python.framework/Versions/2.5/lib/ python2.5/site-packages/django/contrib/sessions/models.py", line 5, in <module> from django.db import models File "/Library/Frameworks/Python.framework/Versions/2.5/lib/ python2.5/site-packages/django/db/__init__.py", line 17, in <module> backend = __import__('%s%s.base' % (_import_path, settings.DATABASE_ENGINE), {}, {}, ['']) File "/Library/Frameworks/Python.framework/Versions/2.5/lib/ python2.5/site-packages/django/db/backends/mysql/base.py", line 12, in <module> raise ImproperlyConfigured("Error loading MySQLdb module: %s" % e) ImproperlyConfigured: Error loading MySQLdb module: bad local file header in /Library/Frameworks/Python.framework/Versions/2.5/lib/ python2.5/site-packages/MySQL_python-1.2.2-py2.5-macosx-10.3-fat.egg --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---