I had deployed my django app on elasticbeanstalk but when I am connecting with rds is shows this error:
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.
container_command 01_migrate in .ebextensions/django.config failed. For more detail, check /var/log/eb-activity.log using console or EB CLI.
Here is my setting:
if 'aam9tdmg0cwj1k.cugucrimdqma.ap-south-1.rds.amazonaws.com' in os.environ:
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql_psycopg2',
'NAME': os.environ['aam9tdmg0cwj1k'],
'USER': os.environ['liveimage'],
'PASSWORD': os.environ['liveimage123'],
'HOST': os.environ['aam9tdmg0cwj1k.cugucrimdqma.ap-south-1.rds.amazonaws.com'],
'PORT': os.environ['5432']
}
}
There is no indent error.
os.environdictionary. - Daniel Roseman