Django Boilerplate

screenshot of Django Boilerplate

A barebones default layout for organised Django development.

Overview:

The Django Boilerplate is a barebones default layout for organized Django development. It is inspired by Ruby on Rails and 'Django Project Conventions' by Zachary Voase. With this boilerplate, developers can quickly set up their Django projects with a predetermined file structure and pre-installed apps.

Features:

  • Settings: Separate files for each environment (development, staging, production) allow for easy configuration and management of Django settings. Additional settings can be added in the environments/local.py file for sensitive information like database credentials or the SECRET_KEY.
  • Preinstalled Apps: The boilerplate comes with pre-installed apps such as path.py (a module wrapper for os.path), South (intelligent database migrations), django-grappelli (a jazzy skin for the Django admin interface), django-command-extensions (a collection of custom extensions), fabric for application deployment and systems administration tasks, and django-compressor for compressing linked and inline JavaScript or CSS into a single cached file.
  • Credits: Much of the layout of the Django Boilerplate is taken from a great post by Zachary Voase. Additionally, Scotty Vernon has contributed to the boilerplate by integrating django-compressor, including modernizr, providing boilerplate markup in base.html, and organizing the javascripts folder.

Summary:

The Django Boilerplate provides a convenient starting point for Django development. Its organized file structure and pre-installed apps eliminate the need to waste time setting up a new Django project from scratch. With separate settings files for each environment and the ability to override settings with a local.py file, developers have easy control over their project configurations. Combine that with the pre-installed apps, and the Django Boilerplate becomes a valuable resource for efficient Django development.