On Thu, Oct 17, 2013 at 1:47 PM, <[email protected]> wrote: > Hi, I am new to Django and try to connect to database MySQL I get this > message: Can anyone help? thanks in advance. > > Unhandled exception in thread started by <bound method Command.inner_run > of <django.contrib.staticfiles.management.commands.runserver.Command object > at 0x3026810>> > Traceback (most recent call last): > File > "/home/tee/django-tee/local/lib/python2.7/site-packages/Django-1.5.4-py2.7.egg/django/core/management/commands/runserver.py", > line 92, in inner_run > self.validate(display_num_errors=True) > File > "/home/tee/django-tee/local/lib/python2.7/site-packages/Django-1.5.4-py2.7.egg/django/core/management/base.py", > line 280, in validate > num_errors = get_validation_errors(s, app) > File > "/home/tee/django-tee/local/lib/python2.7/site-packages/Django-1.5.4-py2.7.egg/django/core/management/validation.py", > line 28, in get_validation_errors > from django.db import models, connection > File > "/home/tee/django-tee/local/lib/python2.7/site-packages/Django-1.5.4-py2.7.egg/django/db/__init__.py", > line 40, in <module> > backend = load_backend(connection.settings_dict['ENGINE']) > File > "/home/tee/django-tee/local/lib/python2.7/site-packages/Django-1.5.4-py2.7.egg/django/db/__init__.py", > line 34, in __getattr__ > return getattr(connections[DEFAULT_DB_ALIAS], item) > File > "/home/tee/django-tee/local/lib/python2.7/site-packages/Django-1.5.4-py2.7.egg/django/db/utils.py", > line 93, in __getitem__ > backend = load_backend(db['ENGINE']) > File > "/home/tee/django-tee/local/lib/python2.7/site-packages/Django-1.5.4-py2.7.egg/django/db/utils.py", > line 27, in load_backend > return import_module('.base', backend_name) > File > "/home/tee/django-tee/local/lib/python2.7/site-packages/Django-1.5.4-py2.7.egg/django/utils/importlib.py", > line 35, in import_module > __import__(name) > File > "/home/tee/django-tee/local/lib/python2.7/site-packages/Django-1.5.4-py2.7.egg/django/db/backends/mysql/base.py", > line 17, in <module> > raise ImproperlyConfigured("Error loading MySQLdb module: %s" % e) > django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module: > No module named MySQLdb > > > Did you install MySQLdb?
-- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CACwCsY5ZQpF9Zby-dA4Z4a5EL9sDSefEqGyS0%3DSLqG41JPFL3g%40mail.gmail.com. For more options, visit https://groups.google.com/groups/opt_out.

