settings.DATABASES is improperly configured. Please supply the ENGINE value.
django.core.exceptions.ImproperlyConfigured
Problem :
File "c:\python27\lib\site-packages\django\db\backends\dummy\base.py", line 15, in complain
raise ImproperlyConfigured("settings.DATABASES is improperly configured. "
django.core.exceptions.ImproperlyConfigured: settings.DATABASES is improperly configured. Please supply
the ENGINE value. Check settings documentation for more details.
Solution :
Either your declaration inside settings.py for the DATABASE is not properly declared, or manage.py cannot find settings.py.
If you use the old format of DATABASE_ENGINE, you need to change this :
DATABASE_ENGINE = 'django.db.backends.postgresql_psycopg2' DATABASE_NAME = 'mydatabase' DATABASE_USER = 'sarahr6' DATABASE_PASSWORD = '' DATABASE_HOST = '' DATABASE_PORT = ''
to this :
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql_psycopg2',
'NAME': 'mydatabase',
'USER': 'sarahr6',
'PASSWORD': '',
'HOST': '',
'PORT': ''
}
}
Note: After you do your fix, you might need to re-install the module with $> sudo python setup.py install
Recent Comments