DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql', # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'.
'NAME': 'djangodb',
'USER': 'root',
'PASSWORD': '',
'HOST': '',
'PORT': '',
}
}
I created a database djangodb now I tried creating tables with this command
./manage.py syncdb
I expected to get
Creating table auth_message
Creating table auth_group
Creating table auth_user
Creating table auth_permission
Creating table django_content_type
Creating table django_session
Creating table django_site
Creating table blog_blogpost
But I get this error:
django.core.exceptions.ImproperlyConfigured: Error loading MySqldb module: no module named MySqldb
I have even tried putting up a host 127.0.0.1 .Can anyone figure out what happened.