dalbanhi
dalbanhi
RRailway
Created by dalbanhi on 3/28/2024 in #✋|help
Trouble connecting Django to PostgreSQL database
Hello, I am very much a new developer trying to deploy a Django app with PostgreSQL. After reading the docs, it seemed to me that I should do the following: * Provision a PostgreSQL database (which I have done, with Project ID: b90272c3-dbc8-4122-b259-9d4f79d6642d) * Connect it to my local Django project (which has been shown to work with my local PostgreSQL). * Eventually, I would then set these environment variables with a .env and it should just work after deploying. I'm sort of following this tutorial: https://kowe.io/guide/deploy-django-on-railway-postgresql However, I'm having trouble connecting my Railway provisioned database to my local Django project. When I try to run python3 manage.py migrate, the command just hangs for a very long time with no visible errors. I would really appreciate any help or direction.
183 replies