how to fix raise ImproperlyConfigured("settings.DATABASES is improperly configured. in django

Viewed 30

so i'm having issue deploying my django on railway but once the deployment is complete the app crash with this err

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.

and below is my django settings and railway setting

DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.postgresql_psycopg2',
        'HOST': os.environ.get('PGHOST'),
        'NAME': os.environ.get('PGDATABASE'),  
        'USERNAME': os.environ.get('PGUSER'),
        'PASSWORD': os.environ.get('PGPASSWORD'),
        'PORT':os.environ.get('PGPORT')
    }
}

enter image description here

can anyone help out pls

0 Answers
Related