The best books on Django for building solid web apps in Python

Who am I?

I’ve been dabbling in Python for the last 22 years. I am a regular speaker at Pycon India ever since its inception. Most of my talks are related to Django. I host arunrocks.com where I write tutorials, and articles and publish screencasts on several Django and Python topics. My initial screencast titled "Building a blog in 30 mins with Django" is one of the most popular screencasts for beginners in Django. I’m a developer member of the Django Software Foundation.


I wrote...

Django Design Patterns and Modern Best Practices

By Arun Ravindran,

Book cover of Django Design Patterns and Modern Best Practices

What is my book about?

Many technical books are comprehensive but they assume you already know a lot. Django Design Patterns and Best Practices not only sheds light on Django, but also starts from the very fundamentals concepts of building maintainable web applications like database design and working with legacy code.

You’ll start with building a fun superhero project by gathering the requirements, creating mockups, and setting up the project. Through project-guided examples, you’ll explore the Model, View, templates, web security, and monitoring techniques. Rather than sticking to GoF design patterns, the book examines higher-level patterns. Using the latest version of Django and Python, you’ll learn about Channels, API design, and asyncio in a clear and simple language.

The books I picked & why

Shepherd is reader supported. We may earn an affiliate commission when you buy through links on our website. This is how we fund this project for readers and authors (learn more).

Two Scoops of Django: Best Practices for the Django Web Framework 1st Edition

By Daniel Roy Greenfeld, Audrey Roy Greenfeld,

Book cover of Two Scoops of Django: Best Practices for the Django Web Framework 1st Edition

Why this book?

Two Scoops is the bible of Django development. It has the most detailed coverage of the Django web framework including best practices and tips. The book has a delightful ice cream-based theme including delightful illustrations. There are several editions of this book so make sure you have the latest one. Overall a valuable reference. However, this book might be daunting for an absolute beginner.


Django for Beginners: Build Websites with Python and Django

By William S. Vincent,

Book cover of Django for Beginners: Build Websites with Python and Django

Why this book?

A beginner-friendly book with very clear writing. Vincent has several books on Django aimed at different levels of expertise. This one has a clear and instructional approach to building simple web applications. It is a little light on concepts and explanation of the requirements, probably intentionally, for which you can rely on other books.


Lightweight Django: Using REST, WebSockets, and Backbone

By Julia Elman, Mark Lavin,

Book cover of Lightweight Django: Using REST, WebSockets, and Backbone

Why this book?

This is a very well-written book that covers some less covered areas like how to write the most minimal Django application or integrating with Tornado server. The book is short and quite engaging. This is not exactly a book for an impatient beginner as it takes time to build the concepts. Also, the book might be a bit dated since it was last updated in 2014.


Mastering Django

By Nigel George,

Book cover of Mastering Django

Why this book?

Another book with a detailed coverage of the Django web framework. This is a revised book written originally by Adrian Holovaty and Jacob Kaplan-Moss—the creators of Django themselves. Hence the initial chapters are an excellent in-depth description of how Django works. The remaining parts of the books go into intermediate and advanced topics.


High Performance Django

By Peter Baumgartner, Yann Malet,

Book cover of High Performance Django

Why this book?

Building scalable and performant web applications is both an art and a science. This book focused on such techniques and hence goes beyond what most books on Django try to cover. Anyone running a Django site under heavy load will definitely learn a few tips from this book. However, it is light on explanations and expects you to figure out many things from reading the examples.


5 book lists we think you will like!

Interested in python, machine learning, and computer programming?

5,810 authors have recommended their favorite books and what they love about them. Browse their picks for the best books about python, machine learning, and computer programming.

Python Explore 25 books about python
Machine Learning Explore 31 books about machine learning
Computer Programming Explore 23 books about computer programming

And, 3 books we think you will enjoy!

We think you will like Python Testing with Pytest, Fluent Python, and Python Distilled if you like this list.