slezica / mini-django

A single-file django application example

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

An entire Django application contained in the app.py file.

This example can:

  • run runserver in debug with static files
  • run makemigrations and migrate
  • render templates
  • be served by gunicorn
# Enter environment and install:
$ python3 -m venv env
(env) $ pip install -r requirements.txt

# Make migrations and migrate:
(env) python app.py makemigrations
(env) python app.py migrate

(env) python app.py runserver # Django server!
(env) gunicorn app # Gunicorn!

About

A single-file django application example


Languages

Language:Python 91.6%Language:HTML 8.4%