Search code examples
djangosyncdb

Unable to resolve following error using Django tutorial - ImproperlyConfigured: settings.DATABASES is improperly configured


I'm using the django tutorial for learning how to use Django.

I'm unable to resolve this error

ImproperlyConfigured: settings.DATABASES is improperly configured. Please supply the ENGINE value. Check settings documentation for more details.

This error comes up after I type

python manage.py syncdb

The django version being used is 1.5 on CentOS


Solution

  • You need to specify ENGINE value in DATABASES setting in your settings.py. The available options are

    • django.db.backends.postgresql_psycopg2
    • django.db.backends.mysql
    • django.db.backends.sqlite3
    • django.db.backends.oracle

    You can also specify a custom backend. Refer django docs for more information.