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)

mysql> \q
Bye
zehi:~ zehi$ cd mysite/
zehi:~/mysite zehi$ ls
__init__.py     manage.py       settings.pyc    urls.pyc
__init__.pyc    settings.py     urls.py
zehi:~/mysite zehi$ vi settings.py
zehi:~/mysite zehi$ python manage.py syncdb
Traceback (most recent call last):
  File "manage.py", line 11, in ?
    execute_manager(settings)
  File
"/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/Django-0.95-py2.4.egg/django/core/management.py",
line 1319, in execute_manager
    execute_from_command_line(action_mapping, argv)
  File
"/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/Django-0.95-py2.4.egg/django/core/management.py",
line 1243, in execute_from_command_line
    action_mapping[action]()
  File
"/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/Django-0.95-py2.4.egg/django/core/management.py",
line 426, in syncdb
    from django.db import connection, transaction, models,
get_creation_module
  File
"/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/Django-0.95-py2.4.egg/django/db/__init__.py",
line 11, in ?
    backend = __import__('django.db.backends.%s.base' %
settings.DATABASE_ENGINE, '', '', [''])
  File
"/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/Django-0.95-py2.4.egg/django/db/backends/mysql/base.py",
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.

Thank you.

zehi


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