Same problem,
ImproperlyConfigured: Error importing middleware
django.contrib.flatpages.middleware: "MySQLdb-1.2.1p2 or newer is
required; you have 1.2.1g3"
Apparently we need to upgrade Mysql, which is already the 5.0 on my
host and no latest version is available, or put mysql_old in the
settings.py.
On Mar 22, 9:11 pm, "Tomas Jacobsen" <[EMAIL PROTECTED]> wrote:
> I checked out the newest django trunk to my dreamhost domain, and
> suddenly I got an error when I tried to go to the admin site.
>
> ImportError: MySQLdb-1.2.1p2 or newer is required; you have 1.2.1g3
>
> Tried 'python manage.py validate' and got this:
>
> Traceback (most recent call last):
> File "manage.py", line 11, in ?
> execute_manager(settings)
> File "/home/username/django/django_src/django/core/management.py",
> line 1666, in execute_manager
> execute_from_command_line(action_mapping, argv)
> File "/home/username/django/django_src/django/core/management.py",
> line 1565, in execute_from_command_line
> action_mapping[action](int(options.verbosity),
> options.interactive)
> File "/home/username/django/django_src/django/core/management.py",
> line 486, in syncdb
> from django.db import connection, transaction, models,
> get_creation_module
> File "/home/username/django/django_src/django/db/__init__.py", line
> 11, in ?
> backend = __import__('django.db.backends.%s.base' %
> settings.DATABASE_ENGINE, {}, {}, [''])
> File "/home/username/django/django_src/django/db/backends/mysql/
> base.py", line 20, in ?
> raise ImportError, "MySQLdb-1.2.1p2 or newer is required; you have
> %s" % Database.__version__
> ImportError: MySQLdb-1.2.1p2 or newer is required; you have 1.2.1g3
>
> Is there any way to fix this?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
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
-~----------~----~----~----~------~----~------~--~---