Using shell_plus on a django app to inspect the database
simon-ccoms
PROOP

a month 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?!

$10 Bounty

1 Replies

Railway
BOT

a month ago


Loading...