Connect sqlite
Hello everyone, I'm trying to connect my db for my django project but I didn't find documentation about this process I need some help about how do this or in such case where can I find documentation, thanks
6 Replies
Project ID:
N/A
N/A
I highly recommend using an external database like postgres
this is how you would want to setup your databases array in code https://github.com/railwayapp-starters/django/blob/main/mysite/settings.py#L81-L90
and then please read this docs section on how to setup the necessary database variables on your service
https://docs.railway.app/develop/variables#reference-variables
So I should run again with all the settings of postgres db in my app or only change settings.py and It will work ?
you'll need to add a database to your railway project, setup the service variables, and then change the databases array in your settings.py
fine, ty