R
Railway•14mo ago
namukun6201

How to use Railway postgre

Hello, after deploy successfully, i have 1 problem with admin account
22 Replies
Percy
Percy•14mo ago
Project ID: 9fdce0b9-d3a0-4188-acf3-1f5f08914d23
namukun6201
namukun6201•14mo ago
9fdce0b9-d3a0-4188-acf3-1f5f08914d23
Brody
Brody•14mo ago
you're going to have to give us details on what's going wrong, an explanation of the situation and the errors you are facing, what you have tried so far, etc etc
namukun6201
namukun6201•14mo ago
ok. When i developed my project at local, i use python manage.py createsuperuser to create an admin account and used it with django administration page. So i want to know how i do the similar after i deploy, i mean is there a command or terminal for me to use manage.py createsuperuser? i deploy my project with django, i am also using postgre on railway
namukun6201
namukun6201•14mo ago
Here is my posgre on railway
Brody
Brody•14mo ago
ah there we go, now I understand you will want to install the railway cli so that you can then run the command railway run python manage.py createsuperuser please read the cli docs here https://docs.railway.app/develop/cli
namukun6201
namukun6201•14mo ago
so i will install npm i -g @railway/cli at my local project ? after install, do i need t add this to requirement.txt ?
Brody
Brody•14mo ago
no
namukun6201
namukun6201•14mo ago
and need redeploy or not ?
Brody
Brody•14mo ago
after you have ran your desired command, I don't think so, it will upgrade the database directly
namukun6201
namukun6201•14mo ago
Ok, it asked to link to project
Brody
Brody•14mo ago
indeed
namukun6201
namukun6201•14mo ago
i have 3, one is project deloyed, one is postgre and one is combine of them which i should choose
Brody
Brody•14mo ago
the project that has your django service
namukun6201
namukun6201•14mo ago
i am done thanks for your support 💯 oh i have 1 more question, about my plan i charged 5$, so if i run out of 5$, will it continue charge ?
Want results from more Discord servers?
Add your server