Files
archived-starters/python/with-django
Jake Runzer 7336895dcc init
2020-09-11 19:02:13 +01:00
..
2020-09-11 19:02:13 +01:00

Railway Django Example

  1. Initialize a Django Project

django-admin startproject <project_name>

  1. Change into the project directory

cd <project_name>

  1. 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)