On Thu, 2006-09-21 at 11:47 +0000, zehi wrote:
> Hi,
> 
> I am Django newbee as well as getting familiar with MySQL and Python
> itself. I use OS X 10.4 and I amtrying to follow Django tutorial. I am
> testing everything on Django testing server.
> 
> I have a problem with settings.py. Django is installed properly, I
> guess. When di import django I have no error message. MySQL works well
> too.
> 
> However when I run syncdb.py I get this message:
> 
> mysql> create database test_dj;
> Query OK, 1 row affected (0.02 sec)
[...]

> zehi:~/mysite zehi$ python manage.py syncdb

[...]

> line 12, in ?
>     raise ImproperlyConfigured, "Error loading MySQLdb module: %s" % e
> django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb
> module: No module named MySQLdb
> 
> 
> Can somebody help me? I am stacked here for several days already.

Looks like you don't have the MySQLdb Python module installed (the piece
that tells Python how to communicate with MySQL). This is a separate
module -- it doesn't come standard with Python.

If you think you do have this module already installed, the following
should work from a Python prompt.

        >>> import MySQLdb
        
If that raises any errors (and I suspect it will at the moment in your
case), then you don't have the module installed correctly.

Regards,
Malcolm



--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to