On Thu, Oct 29, 2009 at 2:47 PM, sridharpandu <[email protected]>wrote:
>
> Hi,
>
> I ran the syncdb command to create the tables for INSTALLED_APPS. I
> get the errors as shown in the output below. Can someone tell me
> what's wrong. I am using a laptop that runs Django as well as the
> MySQL database .
>
> srid...@sridhar:~/finch/chennaicard$ python manage.py syncdb
> Traceback (most recent call last):
> File "manage.py", line 11, in <module>
> execute_manager(settings)
> File "/var/lib/python-support/python2.6/django/core/management/
> __init__.py", line 340, in execute_manager
> utility.execute()
> File "/var/lib/python-support/python2.6/django/core/management/
> __init__.py", line 295, in execute
> self.fetch_command(subcommand).run_from_argv(self.argv)
> File "/var/lib/python-support/python2.6/django/core/management/
> base.py", line 192, in run_from_argv
> self.execute(*args, **options.__dict__)
> File "/var/lib/python-support/python2.6/django/core/management/
> base.py", line 218, in execute
> self.validate()
> File "/var/lib/python-support/python2.6/django/core/management/
> base.py", line 246, in validate
> num_errors = get_validation_errors(s, app)
> File "/var/lib/python-support/python2.6/django/core/management/
> validation.py", line 22, in get_validation_errors
> from django.db import models, connection
> File "/var/lib/python-support/python2.6/django/db/__init__.py", line
> 16, in <module>
> backend = __import__('%s%s.base' % (_import_path,
> settings.DATABASE_ENGINE), {}, {}, [''])
> File "/var/lib/python-support/python2.6/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 module named MySQLdb
>
>
> Best regards
>
> Sridhar Pandurangiah
>
> >
>
The problem is listed out at the end of the Traceback - "Error loading
MySQLdb module: No module named MySQLdb". You need to install the python
MySQL driver. You can get it at http://mysql-python.sourceforge.net/
--
Best,
R
--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---