josephabrahams / tiny-django

A Heroku-ready Django-based Flask replacement

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

tiny-django

A Heroku-ready Django-based Flask replacement.

Quick Start

$ mkvirtualenv --python=$(which python3) tiny-django
$ pip install -r requirements.txt
$ pip cp .env.example .env
$ foreman start -f Procfile.dev
$ open "http://localhost:5000"

Heroku Setup

$ heroku config:set ALLOWED_HOSTS=tiny-django.herokuapp.com
$ heroku config:set DISABLE_COLLECTSTATIC=1
$ heroku config:set SECRET_KEY={{ secret_key }}

Attribution

Based on Lightweight Django by Julia Elman and Mark Lavin. See the original code example.

About

A Heroku-ready Django-based Flask replacement


Languages

Language:Python 81.6%Language:HTML 14.9%Language:Shell 3.5%