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
Percy
Percy12mo ago
Project ID: N/A
NellerP21
NellerP2112mo ago
N/A
Brody
Brody12mo ago
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
NellerP21
NellerP2112mo ago
So I should run again with all the settings of postgres db in my app or only change settings.py and It will work ?
Brody
Brody12mo ago
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
NellerP21
NellerP2112mo ago
fine, ty
Want results from more Discord servers?
Add your server