R
Railway•2y ago
namukun6201

How to use Railway postgre

Hello, after deploy successfully, i have 1 problem with admin account
22 Replies
Percy
Percy•2y ago
Project ID: 9fdce0b9-d3a0-4188-acf3-1f5f08914d23
namukun6201
namukun6201OP•2y ago
9fdce0b9-d3a0-4188-acf3-1f5f08914d23
Brody
Brody•2y 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
namukun6201OP•2y 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
namukun6201OP•2y ago
Here is my posgre on railway
Brody
Brody•2y 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
namukun6201OP•2y 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•2y ago
no
namukun6201
namukun6201OP•2y ago
and need redeploy or not ?
Brody
Brody•2y ago
after you have ran your desired command, I don't think so, it will upgrade the database directly
namukun6201
namukun6201OP•2y ago
Ok, it asked to link to project
Brody
Brody•2y ago
indeed
namukun6201
namukun6201OP•2y ago
i have 3, one is project deloyed, one is postgre and one is combine of them which i should choose
Brody
Brody•2y ago
the project that has your django service
namukun6201
namukun6201OP•2y 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 ?
Brody
Brody•2y ago
are you on the usage based plan or the credit based plan?
namukun6201
namukun6201OP•2y ago
Hobby Plan, i used this, i used my credit card for charging
Brody
Brody•2y ago
do you load the credits onto the railway account manually?
namukun6201
namukun6201OP•2y ago
You are only billed for what you use minus a $5 discount every month. You have 3-day grace period to pay for your use ? they said that
Brody
Brody•2y ago
that doesn't answer the question, either way you are billed 5$ every month along with any extra usage above 5$
namukun6201
namukun6201OP•2y ago
no, i just used for my project, it will last for one week from now
Brody
Brody•2y ago
okay well my answer just above explains the billing
Want results from more Discord servers?
Add your server