Jump to ratings and reviews
Rate this book

Django Design Patterns and Best Practices

Rate this book
Easily build maintainable websites with powerful and relevant Django design patternsAbout This BookUnravel the common problems of web development in DjangoLearn the current best practices while working in Django 1.7 and Python 3.4Experience the challenges of working on an end-to-end social network projectWho This Book Is ForIf you want to learn how best to utilize commonly found patterns and learn best practices in developing applications with Django, this is the book for you. This book, like Django itself, is accessible to amateur and professional developers alike and assumes little in the way of prior experience.

Although written for Python 3, the majority of the code in this book works in Python 2 or can be easily translated.

What You Will LearnUnderstand common design patterns that can help you write better Django codeDiscover the latest best practices and idioms in this rapidly evolving frameworkDeep dive into various aspects of Django from Models and Views to testing and deploymentGet to grips with difficult topics such as dealing with legacy code and debuggingFamiliarize yourself with the various nuances of web development such as browser attacks and databasesReduce the maintenance burden with well-tested, cleaner codeShow your work to the world by learning about hosting, deploying, and securing your Django projectsIn DetailLearning how to write better Django code to build more maintainable websites either takes a lot of experience or familiarity with various design patterns. Filled with several idiomatic Django patterns, Django Design Patterns and Best Practices accelerates your journey into the world of web development.

Discover a set of common design problems, each tackling aspects of Django including model design and Views, and learn several recommended solutions with useful code examples and illustrations. You'll also get to grips with the current best practices in the latest versions of Django and Python. Creating a successful web application involves much more than Django, so advanced topics including REST, testing, debugging, security, and deployment are also explored in detail.

224 pages, Kindle Edition

First published March 1, 2015

11 people are currently reading
42 people want to read

About the author

Ratings & Reviews

What do you think?
Rate this book

Friends & Following

Create a free account to discover what your friends think of this book!

Community Reviews

5 stars
9 (23%)
4 stars
13 (34%)
3 stars
11 (28%)
2 stars
3 (7%)
1 star
2 (5%)
Displaying 1 - 4 of 4 reviews
Profile Image for Julio Biason.
199 reviews29 followers
July 9, 2016
Although I'm not a fan of design patterns (you know, the GoF one) because people tend replace it to proper thinking. But I do like design patterns for languages and frameworks, because you can use something for a very long time and still not doing it in the right way.

The book has an interesting premise: Explain a bit something, point a problem, a solution, expand the problem and expand the solution. The problem is that some problems seem really shoe horned to certain solutions. Also, some common problems are not talked at all, like using CSRF with Ajax -- something the author mentions people shouldn't do (disable CSRF) on Ajax requests.

On the other hand, the book focus on the the most recent versions (well, almost). Instead of going in the safe road of Python 2, the book focus on Python 3 -- and, to be honest, there isn't much difference between Django with Python 3 and Django with Python 2.

Is not a bad book, but the really interesting things seem to be left out.
Profile Image for Pranay Kothapalli.
14 reviews1 follower
June 24, 2016
I am relatively new to Django, When the author said we'd be making "SuperBook" I was excited to build the back end of my own social network website with some assistance. I was disappointed to see that it wasn't a full blown tutorial+demonstration of best practices that are used while building the back end. Nevertheless, it's a great book to revisit some resources out there and on how to maintain your project for the 1.7 version.
Profile Image for Amrullah Zunzunia.
32 reviews
January 25, 2016
Some really good advice for beginners,
(Although, if you have read "Two Scoops of Django", a lot of what you read in this book won't be new,

but still a recommended read, (especially for it's "Active link pattern" )
Displaying 1 - 4 of 4 reviews

Can't find what you're looking for?

Get help and learn more about the design.