a year ago
I'm setting up a Django project on Railway with a PostgreSQL database. I've set the DATABASE_URL using placeholders like ${{PGUSER}}, but when running locally, I get an error:
could not translate host name "${{railway_private_domain}}" to addressIt appears the placeholders aren't being replaced in the local environment.
before when i would do this connection i was getting direct connection url but now it seems i can't get it rather i am getting placeholders so how can i get the direct value is there a way : postgresql://${{PGUSER}}:${{POSTGRESPASSWORD}}@${{RAILWAYPRIVATE_DOMAIN}}:5432/${{PGDATABASE}}
6 Replies
a year ago
please use reference variables to reference the url variable available to you on the database service -
I'm confused with this too. I chose Railway specifically because I am not really strong in SQL. Then they go and change all of the variables? Why couldn't you guys leave the original variables? I'm losing money with my business right now because I have no site to advertise my primary business. I also use one of my sites to manage invoices, customers, and staff. I lost three potential job offers because I have nothing to show case. I have another meeting for a potential job Wednesday and I still have nothing to use. My websites are all broken. Why would Railway do this? Do you want to lose members? Because at this point, I'm about to go back to Linode and pay 4 times the rates. At least they don't make drastic server breaking changes like this.
a year ago
im sorry but i dont understand why you are claiming we have changed your variables
i figured out the problem and it's the ui before it had icons to copy the variables and show but i can't see these icons now but just in conicidence i touched that area and i saw copied another time show so pls fix that bug
a year ago
you would want to be using reference variables, not copying variables