4 months ago
I am trying to use python manage.py shell_plus on my Django project in Railway so I can inspect the database models etc. which is something I regularly do.
But when I run:-
railway run python manage.py shell_plus
it tries to connect to the internal URL of the database, which is obviously not accessible locally so I get:-
django.db.utils.OperationalError: could not translate host name "postgres-h8ck.railway.internal" to address: nodename nor servname provided, or not known
How do I connect locally to my railway db like this? Surely I don't have to redeploy my app but use the public URL of the db to make this work?!
1 Replies
4 months ago
Hey there! We've found the following might help you get unblocked faster:
🧵 Connection refused when connect django to database hosted in railways
🧵 I am unable to connect my application with https://web-production-24023.up.railway.app/
If you find the answer from one of these, please let us know by solving the thread!