Two Scoops of Django 1.6 Example Code

We provide code examples for the 1.6 edition as a courtesy to our readers. Please read both sections before downloading the code.

Using the Code Examples

The code examples provided are to help you reference Two Scoops of Django: Best Practices for Django 1.6. Example code is provided "as is", and is not intended to be, and should not be considered or labeled as "tutorial code".

As we are swamped with email, we cannot provide unpaid support for the code.


In general, you may use the code we've provided with this book in your programs and documentation. You do not need to contact us for permission unless you're reproducing a significant portion of the code or using it in commercial distributions. Examples:

  • Writing a program that uses several chunks of code from this course does not require permission. 
  • Selling or distributing a digital package from material taken from this book does require permission. 
  • Answering a question by citing this book and quoting example code does not require permission. 
  • Incorporating a significant amount of example code from this book into your product's documentation does require permission.

Attributions usually include the title, author, publisher and an ISBN. For example, "Two Scoops of Django: Best Practices for Django 1.6, by Daniel Greenfeld and Audrey Roy. Copyright 2014 Two Scoops Press 098146730X."

If you feel your use of code examples falls outside fair use of the permission given here, please contact us at

Download the Code

Two Scoops of Django 1.6 Example Code Download