Make sure you have installed MySQLdb http://sourceforge.net/projects/mysql-python/
On Mon, Apr 5, 2010 at 21:31, John <jbamp...@gmail.com> wrote: > Hello all, > > I am new to django and am doing the tutorial and when I run the > command below I get the following error. > > Does anyone know how to solve this? > > E:\temp_dj_site\mysite>python manage.py syncdb > > Traceback (most recent call last): > File "manage.py", line 11, in <module> > execute_manager(settings) > File "E:\Python26\lib\site-packages\django\core\management > \__init__.py", line > 362, in execute_manager > utility.execute() > File "E:\Python26\lib\site-packages\django\core\management > \__init__.py", line > 303, in execute > self.fetch_command(subcommand).run_from_argv(self.argv) > File "E:\Python26\lib\site-packages\django\core\management\base.py", > line 195, > in run_from_argv > self.execute(*args, **options.__dict__) > File "E:\Python26\lib\site-packages\django\core\management\base.py", > line 221, > in execute > self.validate() > File "E:\Python26\lib\site-packages\django\core\management\base.py", > line 249, > in validate > num_errors = get_validation_errors(s, app) > File "E:\Python26\lib\site-packages\django\core\management > \validation.py", lin > e 22, in get_validation_errors > from django.db import models, connection > File "E:\Python26\lib\site-packages\django\db\__init__.py", line 41, > in <modul > e> > backend = load_backend(settings.DATABASE_ENGINE) > File "E:\Python26\lib\site-packages\django\db\__init__.py", line 17, > in load_b > ackend > return import_module('.base', 'django.db.backends.%s' % > backend_name) > File "E:\Python26\lib\site-packages\django\utils\importlib.py", line > 35, in im > port_module > __import__(name) > File "E:\Python26\lib\site-packages\django\db\backends\mysql > \base.py", line 13 > , in <module> > raise ImproperlyConfigured("Error loading MySQLdb module: %s" % e) > django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb > module: No mo > dule named MySQLdb > > E:\temp_dj_site\mysite> > > -- > 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<django-users%2bunsubscr...@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > > -- 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.