Code for Django Unleashed using Django 1.8
Switch branches/tags
Nothing to show
Clone or download
Failed to load latest commit information.
blog Ch28: Implement PostArchiveSitemap. Jul 30, 2015
contact Ch27: Replace template code with display_form. Jul 30, 2015
core Ch27: Implement confirm_delete_form template tag. Jul 30, 2015
fixtures Ch24: Reserialize data. Jul 30, 2015
organizer Ch28: Implement StartupSitemap. Jul 30, 2015
static/site Ch28: Add RSS image to static assets. Jul 30, 2015
suorganizer Ch29: Workaround for Memcache bug. Jul 30, 2015
templates Ch29: Create error pages. Jul 30, 2015
user Ch27: Replace code with confirm_delete_form tag. Jul 30, 2015
.gitconfig Prep: Configure git; Create and License. Jul 30, 2015
.gitignore Prep: Configure git; Create and License. Jul 30, 2015
Chapter_03_Model_Managers_and_QuerySets.ipynb Ch03: Add IPython notebook for ORM demo code. Jul 30, 2015
Chapter_04_Using_Templates_In_Python.ipynb Ch04: Demonstrate Templates in IPython notebook. Jul 30, 2015
Chapter_06_Reversing_URL_Patterns.ipynb Ch06: Extend code examples in IPython notebook. Jul 30, 2015
Chapter_07_Forms_in_Python.ipynb Ch07: Interact with TagForm in IPython notebook. Jul 30, 2015
Chapter_07_Model_Validation.ipynb Ch07: Show lack of Model Validation in ipynb. Jul 30, 2015
Chapter_14_Pagination.ipynb Ch14: Create Pagination IPython notebook. Jul 30, 2015
Chapter_26_Optimizing_Database_Connections.ipynb Errata: fix malformed JSON in Jupyter NB Oct 22, 2017
LICENSE Prep: Configure git; Create and License. Jul 30, 2015
Procfile Ch29: Create Procfile for Foreman on Heroku. Jul 30, 2015 Prep: Configure git; Create and License. Jul 30, 2015
dev_requirements.txt Ch29: Split requirements.txt; add Heroku tools. Jul 30, 2015 Ch01: Generate new Django project. Jul 30, 2015
requirements.txt Ch29: Enable caches in production. Jul 30, 2015
runtime.txt Ch29: Force Heroku to use Python 3.4. Jul 30, 2015

Django Unleashed

This repository holds all of the code for Django Unleashed. If you find this code helpful, please buy the book.

All of this code is open-source under 2-clause BSD-license.

The code is written using Django 1.8. The full reference documentation for Django 1.8 may be found here.


This repository is frozen. To allow for the commit hashes in the book to link to the code in this repository, errors will not be fixed, and pull requests will be ignored. Errata will instead be listed on the Django Unleashed website.

For any help with Django, please ask questions on the official Django User mailing list. This will be a far quicker way of getting help than contacting me directly (and if you use the word "unleashed" in your email, my email will flag it. I will try to respond, if possible).

Walking the Repository

To make perusing the code in this repository as simple as possible, the project defines its own .gitconfig file with custom commands (aliases).

To enable the commands, you must first point your local git configuration at the file provided. Either of the two commands below will work.

# relative path
git config --local include.path "../.gitconfig"
# absolute path
git config --local include.path "`pwd`/.gitconfig"

This will enable the following git commands:

  • git chapter #
    This will list all of the commits relevant to that chapter. For example, git chapter 17 will show all of the commits used in Chapter 17.

  • git next
    Move to the next example in the book.

  • git prev
    Move to the previous example in the book.

For those who prefer a GUI, Atlassian's SourceTree is a good alternative to the commands above.