/tiny-django

A Heroku-ready Django-based Flask replacement

Primary LanguagePython

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.