Django postgresql github help please
Hello good people of Railway, my name is Tomislav. I have just signed up for the Hobby account. I am creating a django app and need help learning about deployment with postgress and github. Can anybody help please? This is all very new to me.
Thank you!
11 Replies
Project ID:
N/A
N/A
I dont have a project as of yet, i mean it is not on the account currently.
If you create a project and deploy your Github repo, Railway should be able to auto detect your setup and deploy no problem
as for the posgres db, you can add a template to your project from plus button on the project page. Configure your django service so that it looks for the environment variables of the other service
Thank you, that is what i need help with 🙂
I need to learn about that process. I am trying to find content on that matter but nowhere can i find it, in details what needs to be done from start to finish.
do you have a django app in a github repo?
Hi, yes i do. But i am finishing up the works before the version 1 can go live, i am basically done maybe two more days of work.
Also a problem for me after the deployment, is how do i make changes to database. Let's say we go live. Then i want to add a feature, maybe a new model with its crud process. How do i go about it and not destroy the content and the live database version.
Locally i know to do that, but this push pull postrgres process i have to learn.
postgres is a separate service
but if you are talking about how to run migrations? then in a railway.json file like this
https://github.com/railwayapp-templates/django/blob/main/railway.json#L7
Hi, thank you. I don't understand what that code does and where it goes. First i have to deploy one test app with postgress, then i have to see about those changes. It is a bit shame that railway doenst have a doc about django deployment, because i need a detailed info from where i can learn the process
There is no guide for Django specifically, but you can follow the quick start guide. https://docs.railway.app/quick-start
Railway is pretty intuitive. We’re here to answer any questions that you may have, but give it a shot for yourself first
Thank you, i will of course and will get back here with the info