mirror of
https://github.com/SrIzan10/starters.git
synced 2026-05-01 11:05:16 +00:00
Railway Django Example
- Initialize a Django Project
django-admin startproject <project_name>
- Change into the project directory
cd <project_name>
- Create a Railway Project
railway init
Edit settings.py Changing ENGINE from django.db.backends.sqlite3 to django.db.backends.postgresql
Run Django with Railway
railway run python manage.py runserver
/fin
NOTE: The only thing changed in this project from the Django was altering the DATABASES dictionary inside of settings.py (Changed ENGINE from sqlite3 to postgresql)