When running python manage.py migrate, with no changes to run makemigrations, the following error is displayed:
…
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.
Here are the lines referring to ENGINE and other access data to my database:
DATABASES = {
‘default’: {
‘ENGINE’: ‘django.db.backends.postgresql_psycopg2’,
‘NAME’: ‘secret’,
‘USER’: ‘secret’,
‘PASSWORD’: ‘94429251975fe18a54644a17ad72303f1368f523cb129dbbfce18ce8ec75b339’,
‘HOST’: ‘ec2-52-72-65-76.compute-1.amazonaws.com’,
‘PORT’: ‘5432’,
},
‘dev’: {
‘ENGINE’: ‘django.db.backends.postgresql_psycopg2’,
‘NAME’: ‘web_validator’,
‘USER’: ‘secret’,
‘PASSWORD’: ‘secret’,
‘HOST’: ‘db’,
‘PORT’: ‘5432’,
}
}
DATABASES[‘default’] = DATABASES[‘dev’ if DEBUG else ‘default’]