An open API service indexing awesome lists of open source software.

https://github.com/mr-destructive/capes-prod


https://github.com/mr-destructive/capes-prod

Last synced: about 1 year ago
JSON representation

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.

[![Deploy on Railway](https://railway.app/button.svg)](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/).