Debugging Django project problem.
Posted
by Wasim
on Stack Overflow
See other posts from Stack Overflow
or by Wasim
Published on 2010-01-04T07:43:13Z
Indexed on
2010/05/04
7:08 UTC
Read the original article
Hit count: 375
django
Hi all, I asked this question before, but had no replies, maybe I wasn't so clear.
I'm trying to debug a django project using MySQL database. If I run the admin or trying to use the shell to communicate to the data base every thing is well and I can do every thing. I installed MySQLdb for Python 2.6.
I installed PyDev on my Apatana studio. Configured the Debugging with runserver 8001 --noreload.
When I start debugging , When I arrive to the following code in C:\Python26\Lib\site-packages\django\db\backends\mysql\base.py
try:
import MySQLdb as Database
except ImportError, e:
from django.core.exceptions import ImproperlyConfigured
raise ImproperlyConfigured("Error loading MySQLdb module: %s" % e)
I get an import error : django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module: DLL load failed: The specified module could not be found.
I trying to ge more deeply with the import MySQLdb as Database line , it goes to the C:\Python26\Lib\site-packages\MySQLdb__init__.py and fail in the line import _mysql.
I can't understand the problem. When running the Django admin every thing is ok, but with debugging it fails to work.
Any help please. Thanks in advance.
© Stack Overflow or respective owner