9 months ago
I'm running a Django app on Railways (which works) but:
- if I try to create a superuser via CLI and railway run, I have that error
- account creation doesn't work (probably due to the database connection)
- the app was working properly locally with a local Postgre (didn't work local with public postgre on Railway)
- I've changed the settings.py using variables: they work, I can see the hostname of my postgre database in railways but I have the message
Weirdest thing: I don't know when and how but there are tables created on Postgre that match the tables of my app but I have no idea when it happened (tables are empty)
Any suggestion I can debug it further?
Thanks!
1 Replies
9 months ago
UPDATE:
I've switched connection settings to make the app connecting to the public address of the DB.
Now is working, so for some reason Django couldn't resolve internal railway DB address.
Not happy with the solution but at least is working.