I am starting out to learn django and I am using the book: Beginning Django 
E-Commerce by Jim McGaw. 
I was able to create the database using mysql console but when I ran the 
command: 
$ python manager.py dbshell
I got the following error:

ow...@dipo /c/python26/djangojobs/ecomstore
$ python manage.py dbshell
Traceback (most recent call last):
  File "manage.py", line 11, in <module>
    execute_manager(settings)
  File "c:\Python26\lib\site-packages\django-1.2.1-py2.6.egg\django\core\managem
ent\__init__.py", line 438, in execute_manager
    utility.execute()
  File "c:\Python26\lib\site-packages\django-1.2.1-py2.6.egg\django\core\managem
ent\__init__.py", line 379, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "c:\Python26\lib\site-packages\django-1.2.1-py2.6.egg\django\core\managem
ent\__init__.py", line 257, in fetch_command
    klass = load_command_class(app_name, subcommand)
  File "c:\Python26\lib\site-packages\django-1.2.1-py2.6.egg\django\core\managem
ent\__init__.py", line 67, in load_command_class
    module = import_module('%s.management.commands.%s' % (app_name, name))
  File "c:\Python26\lib\site-packages\django-1.2.1-py2.6.egg\django\utils\import
lib.py", line 35, in import_module
    __import__(name)
  File "c:\Python26\lib\site-packages\django-1.2.1-py2.6.egg\django\core\managem
ent\commands\dbshell.py", line 4, in <module>
    from django.db import connections, DEFAULT_DB_ALIAS
  File "c:\Python26\lib\site-packages\django-1.2.1-py2.6.egg\django\db\__init__.
py", line 75, in <module>
    connection = connections[DEFAULT_DB_ALIAS]
  File "c:\Python26\lib\site-packages\django-1.2.1-py2.6.egg\django\db\utils.py"
, line 91, in __getitem__
    backend = load_backend(db['ENGINE'])
  File "c:\Python26\lib\site-packages\django-1.2.1-py2.6.egg\django\db\utils.py"
, line 32, in load_backend
    return import_module('.base', backend_name)
  File "c:\Python26\lib\site-packages\django-1.2.1-py2.6.egg\django\utils\import
lib.py", line 35, in import_module
    __import__(name)
  File "c:\Python26\lib\site-packages\django-1.2.1-py2.6.egg\django\db\backends\
mysql\base.py", line 14, in <module>
    raise ImproperlyConfigured("Error loading MySQLdb module: %s" % e)
django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module: No mo
dule named MySQLdb

Please what am I doing wrong. 
Let me add that I installed wamp so the mysql I am using in bundled with apache 
and php. I hope that is not the problem. 

I hope to get a feedback. 

Thank you. 
Sent from my BlackBerry wireless device from MTN

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to