https://github.com/mr-destructive/capes-prod
https://github.com/mr-destructive/capes-prod
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/mr-destructive/capes-prod
- Owner: Mr-Destructive
- Created: 2022-05-03T04:51:26.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-05-03T10:48:54.000Z (about 4 years ago)
- Last Synced: 2025-01-29T20:37:34.298Z (over 1 year ago)
- Language: Python
- Size: 200 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
---
title: Django
description: A Django application that connects to a PostgreSQL database
tags:
- python
- django
- postgresql
---
# Django Example
This is a [Django](https://www.djangoproject.com/) application that connects to a Railway Postgres database.
[](https://railway.app/new?template=https%3A%2F%2Fgithub.com%2Frailwayapp%2Fexamples%2Ftree%2Fmaster%2Fexamples%2Fdjangopy&plugins=postgresql&envs=SECRET_KEY&SECRET_KEYDesc=Django+secret+key+used+for+authentication)
## ✨ Features
- Python
- Django
- Postgres
## 💁♀️ How to use
- [Create a Railway project with the Postgres plugin](https://railway.app/project?plugins=postgresql)
- 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`
## 📝 Notes
Read more about Django at their [official
documentation](https://www.djangoproject.com/start/).