skip to Main Content

Postgresql – Trouble hooking up postgres to django

Following the documentation from Django Postgres DocumentationI added to my settings.py in settings I set DATABASES = { 'default': { 'ENGINE': 'django.db.backends.postgresql', 'OPTIONS': { 'service': 'my_service', 'passfile': '.my_pgpass', }, } } Adjacent to settings.py I created pg_service.conf with [my_service] host=localhost…

VIEW QUESTION

Postgresql – how to fix raise ImproperlyConfigured("settings.DATABASES is improperly configured. when deploying on railway

hey guys so i'm follwing this guide https://dev.to/mr_destructive/django-postgresql-deployment-on-railway-app-d54 on how to deploy my django project on railway i have everything set locally, it working but once i deploy, the app crashes returning this err File "/home/olaneat/Desktop/files/project/django/job/lib/python3.8/site-packages/django/db/migrations/recorder.py", line 55, in has_table…

VIEW QUESTION
Back To Top
Search