R
Railway•10mo ago
tom021

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
Percy
Percy•10mo ago
Project ID: N/A
tom021
tom021•10mo ago
N/A I dont have a project as of yet, i mean it is not on the account currently.
Adam
Adam•10mo ago
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
tom021
tom021•10mo ago
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.
Brody
Brody•10mo ago
do you have a django app in a github repo?
tom021
tom021•10mo ago
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.
Brody
Brody•10mo ago
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
tom021
tom021•10mo ago
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
Adam
Adam•10mo ago
There is no guide for Django specifically, but you can follow the quick start guide. https://docs.railway.app/quick-start
Railway Docs
Quick Start Tutorial | Railway Docs
Documentation for Railway
Adam
Adam•10mo ago
Railway is pretty intuitive. We’re here to answer any questions that you may have, but give it a shot for yourself first
tom021
tom021•10mo ago
Thank you, i will of course and will get back here with the info
Want results from more Discord servers?
Add your server