title | description | tags | |||
---|---|---|---|---|---|
Django |
A Django application that connects to a PostgreSQL database |
|
This is a Django application that connects to a Railway Postgres database.
- Python
- Django
- Postgres
- Create a Railway project with the Postgres plugin
- Connect to your Railway project with
railway link
- Install Python requirements
pip install -r requirements.txt
- Migrate the database
railway run python3 manage.py migrate
- Run Django
railway run python3 manage.py runserver
Read more about Django at their official documentation.