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

olaneat

OlaNeat Ayoola

Posted on September 15, 2022

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

hallo guys,
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.



Enter fullscreen mode Exit fullscreen mode

and below is my django settings and railway setting



DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.postgresql',
        '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 fullscreen mode Exit fullscreen mode

Image description

can anyone help out pls

💖 💪 🙅 🚩
olaneat
OlaNeat Ayoola

Posted on September 15, 2022

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related