Skip to main content

Tools to streamline and simplify using Django.

Project description

Tools to streamline and simplify using Django.

Why the Zen of Django?

After teaching Django I found several aspects of the framework which could be
streamlined and simplified to help those learning the framework. So I curated
some best practices, pre-configured popular libraries, and simplified parts of
Django. Both beginners and seasoned veterans can use Zen of Django to simplify
and start faster. Each piece can be easily exchanged or removed once you out
grow any of them.


  • Production Ready Deployment: Pre-built with uWSGI or Gunicorn support for deployment. Both have become the high performance standard for Django deployments thus we baked it in by default.
  • Production Ready Static File Serving: Static file serving is configured out of the box using WhiteNoise. WhiteNoise provides simple static file serving with performance in mind.
  • Settings Management: Settings are split into development and production. Debug is turned off in production by default. It is also easy to add more environments.
  • SECRET_KEY Management: The secret key is setup using environmental variables so you don’t commit it to your repository by accident. A dot env file is also added and ignored in git for added safety.
  • Git Ignore Setup: Adds your secrets and db.sqlite3 to your .gitingore automatically.


pipenv install djzen[uwsgi]


pipenv install djzen[gunicorn]

Quick Start

pipenv install djzen[uwsgi]
djzen startproject <projectname>
Install to:
  [1] Current directory (recommended)
  [2] testproj
Directory? [1]: <enter>
Setup .gitignore? [Y/n]: <enter>

pipenv run python devserver
# or
pipenv run python collectstatic
pipenv run python prodserver


Starting a djzen project

pipenv run djzen startproject [projectname] [directory]

directory is optional

Development Server

pipenv run python devserver

Does the same thing as runserver just gives you a better indication of which environment you’re running.

Production Server

pipenv run python prodserver

Does the same thing as runuwsgi just gives you a better indication of which environment you’re running.

Static Files

Static files will be served automatically with the production server. You only need to run the collectstatic command on deployment.

pipenv run python collectstatic


Secrets are stored in .env which use the DotEnv format. Using pipenv the values are loaded into environment automatically if a .env exists.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for djzen, version 17.12.5
Filename, size File type Python version Upload date Hashes
Filename, size djzen-17.12.5.tar.gz (6.8 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page