PROBLEM:
An error occurs when running *Python manage.py syncdb* after setting
DATABASE_ENGINE = 'mysql' in settings.py.
(I've omitted the other settings here for brevity).
The error is "Error loading MySQLdb module: No module named MySQLdb"
(I've omitted the rest of the error stack.)
ENVIRONMENT:
Windows XP Pro
Python 2.4
Apache 2.2
mod-python 3.2.10
MySQL 5.0
ANAYLYSIS
The Python code in django\db\backends\mysql\base.py appears to be
looking for a DB connector in the django/db/backends/mysql folder named
MySQLdb. There is no Python file (.py) of this name in either the
MySQL or the Django installations. Nor is there a DLL or PYD file in
the DLLs folder that looks MySQLish.
Any suggestions?
Thanks, Ed
Did you install a Python Mysql module? I use this one:
http://sourceforge.net/projects/mysql-python
--
Julio Nobrega - http://www.inerciasensorial.com.br