Can't create django superuser from railway shell or railway run

prisma
HOBBY

5 months ago

django.db.utils.OperationalError: could not translate host name "postgres.railway.internal" to address: Name or service not known

the app is running, migrate command was applied, but when I try to run a script from shell, can't connect to database. I'm using a different folder for settings, config/settings/pro.py. and change this settings file with --settings flag to the createsuperuser command. $ railway run python manage.py createsuperuser --settings=config.settings.pro

Solved

1 Replies

prisma
HOBBY

5 months ago

solved! thanks


Status changed to Solved ray-chen 5 months ago


Can't create django superuser from railway shell or railway run - Railway Help Station