The Django 3.x edition

Two Scoops of Django 3.x

Build Django apps you’ll want to maintain.

You know the basics. Now you’re deciding where business logic belongs, how to organize settings, and what to test before you ship. Here are the patterns we use in real projects, with examples you can bring back to your own code.

PDF downloadSold by Feldroy LLCUSD, plus applicable tax
Buy PDF · $49.95

Download your file after payment. We’ll email you a private link, valid for 30 days. Refunds or disputes stop further downloads. Seller terms · Contact & support

DRM-free PDF · 500+ pages · Fifth edition

Cover of Two Scoops of Django 3.x: Best Practices for the Django Web Framework

Take it to your next code review

  • Organize your projectGive apps clear responsibilities, organize settings for different environments, and keep views focused.
  • Make models and queries easier to work withChoose where model logic belongs and spot database work your templates are doing by accident.
  • Catch problems before you shipApply practical patterns for form validation, testing, and security.

Which Django version? The examples target Django 3.x. If you work on a newer release, check version-specific APIs against the docs for your version. This edition was last revised in August 2023.

Other editions

Cover of Two Scoops of Django 1.11: Best Practices for the Django Web Framework

Two Scoops of Django 1.11: Best Practices for the Django Web Framework

Django 1.11 · Fourth edition · 2017

Ebook

Edition details

We introduce various tips, tricks, patterns, code snippets, and techniques that we've picked up over the years. What we didn't know or weren't certain about, once again we found the best experts in the world and asked them for the answers. Then we packed the result into a 530+ page book.

Authors: Daniel Roy Greenfeld and Audrey Roy Greenfeld.

Cover of Two Scoops of Django: Best Practices for Django 1.8

Two Scoops of Django: Best Practices for Django 1.8

Django 1.8 · Third edition · 2015

Ebook

Edition details

We introduce various tips, tricks, patterns, code snippets, and techniques that we've picked up over the years. What we didn't know or weren't certain about, we found the best experts in the world and asked them for the answers. Then we packed the result into a 500+ page book.

Authors: Daniel Roy Greenfeld and Audrey Roy Greenfeld.

Cover of Two Scoops of Django: Best Practices for Django 1.6

Two Scoops of Django: Best Practices for Django 1.6

Django 1.6 · Second edition · 2014

Paperback

Edition details

Two Scoops of Django: Best Practices for Django 1.6 is chock-full of even more material that will help you with your Django projects. We'll introduce you to various tips, tricks, patterns, code snippets, and techniques that we've picked up over the years. We have put thousands of hours into writing and revising its hundreds of pages of concise, example-packed text.

Authors: Daniel Greenfeld and Audrey Roy.

Paperback ISBN: 9780981467306.

Cover of Two Scoops of Django: Best Practices for Django 1.5

Two Scoops of Django: Best Practices for Django 1.5

Django 1.5 · First edition · 2013

Ebook

Edition details

Two Scoops of Django: Best Practices for Django 1.5 is a compilation of best practices for the Django framework. Like any framework, Django has tips, tricks, and pitfalls that aren't documented in one place. Experienced developers know this stuff, but gleaning it off the Internet takes a lot of time. We decided to take everything we know and write it down.

Authors: Daniel Greenfeld and Audrey Roy.