![Amazon prime logo](https://m.media-amazon.com/images/G/01/marketing/prime/new_prime_logo_RGB_blue._CB426090081_.png)
Enjoy fast, free delivery, exclusive deals, and award-winning movies & TV shows with Prime
Try Prime
and start saving today with fast, free delivery
Amazon Prime includes:
Fast, FREE Delivery is available to Prime members. To join, select "Try Amazon Prime and start saving today with Fast, FREE Delivery" below the Add to Cart button.
Amazon Prime members enjoy:- Cardmembers earn 5% Back at Amazon.com with a Prime Credit Card.
- Unlimited Free Two-Day Delivery
- Streaming of thousands of movies and TV shows with limited ads on Prime Video.
- A Kindle book to borrow for free each month - with no due dates
- Listen to over 2 million songs and hundreds of playlists
- Unlimited photo storage with anywhere access
Important: Your credit card will NOT be charged when you start your free trial or if you cancel during the trial period. If you're happy with Amazon Prime, do nothing. At the end of the free trial, your membership will automatically upgrade to a monthly membership.
Buy new:
-25% $29.91$29.91
Ships from: Amazon Sold by: SellersPremium
Save with Used - Very Good
$2.36$2.36
$3.98 delivery February 24 - 25
Ships from: glenthebookseller Sold by: glenthebookseller
![Kindle app logo image](https://m.media-amazon.com/images/G/01/kindle/app/kindle-app-logo._CB668847749_.png)
Download the free Kindle app and start reading Kindle books instantly on your smartphone, tablet, or computer - no Kindle device required.
Read instantly on your browser with Kindle for Web.
Using your mobile phone camera - scan the code below and download the Kindle app.
Follow the authors
OK
Two Scoops of Django 1.11: Best Practices for the Django Web Framework
Purchase options and add-ons
In this book we introduce you to the various tips, tricks, patterns, code snippets, and techniques that we've picked up over the years. We have put thousands of hours into the fourth edition of the book, writing and revising its material to include significant improvements and new material based on feedback from previous editions.
Table of Contents- Chapter 1: Coding Style
- Chapter 2: The Optimal Django Environment Setup
- Chapter 3: How To Lay Out Django Projects
- Chapter 4: Fundamentals of Django App Design
- Chapter 5: Settings and Requirements Files
- Chapter 6: Model Best Practices
- Chapter 7: Queries and the Database Layer
- Chapter 8: Function- and Class-Based Views
- Chapter 9: Best Practices for Function-Based Views
- Chapter 10: Best Practices for Class-Based Views
- Chapter 11: Form Fundamentals
- Chapter 12: Common Patterns for Forms
- Chapter 13: Templates: Best Practices
- Chapter 14: Template Tags and Filters
- Chapter 15: Django Templates and Jinja2
- Chapter 16: Building APIs with Django Rest Framework
- Chapter 17: Consuming REST APIs
- Chapter 18: Tradeoffs of Replacing Core Components
- Chapter 19: Working With the Django Admin
- Chapter 20: Dealing with the User Model
- Chapter 21: Django's Secret Sauce: Third-Party Packages
- Chapter 22: Testing Chapter of Doom!
- Chapter 23: Documentation: Be Obsessed
- Chapter 24: Finding and Reducing Bottlenecks
- Chapter 25: Asynchronous Task Queues
- Chapter 26: Security Best Practices
- Chapter 27: Logging: Tips and Tools
- Chapter 28: Signals: Use Cases and Avoidance Techniques
- Chapter 29: What About Those Random Utilities?
- Chapter 30: Deployment: Platforms as a Service
- Chapter 31: Deploying Django Projects
- Chapter 29: Identical Environments: The Holy Grail
- Chapter 32: Continuous Integration
- Chapter 33: The Art of Debugging
- Chapter 34: Where and How to Ask Django Questions
- Chapter 35: Closing Thoughts
- Appendix A: Packages Mentioned In This Book
- Appendix B: Troubleshooting
- Appendix C: Additional Resources
- Appendix D: Internationalization and Localization
- Appendix E: Settings Alternatives
- Appendix F: Working with Python 2
- Appendix G: Channels and Websockets
- This is the swiss army knife for every Django developer. -- Jannis Gebauer, djangopackages.org maintainer and pyup.io founder
- We buy this book for every new engineer on our team. It's a must for Django development! -- Jacinda Shelly, CTO of Doctor On Demand
- I wanted to write a book about best practices in Django, except Two Scoops is that book, no need to write another one. -- Buddy Lindsey, Host of GoDjango
- Audrey's illustrations reinforce Audrey and Daniel's Django technical excellence. (Art + ice cream) * 2 tech experts = Two Scoops of Django. -- Carol Willing, Project Jupyter Core Dev and Python Software Foundation director
- Simply the best book on Django. Whenever I am not sure if I am following the best practices, I look up the topic in this book. A must read. -- Abu Ashraf Masnun, programmer
- ISBN-100692915729
- ISBN-13978-0692915721
- Publication dateJune 30, 2017
- LanguageEnglish
- Dimensions7.5 x 1.25 x 9.25 inches
- Print length555 pages
Frequently bought together
![Two Scoops of Django 1.11: Best Practices for the Django Web Framework](https://images-na.ssl-images-amazon.com/images/I/711r-LllDaL._AC_UL116_SR116,116_.jpg)
Customers who viewed this item also viewed
Editorial Reviews
About the Author
To learn more about Daniel and Audrey:
- Main Website: roygreenfeld.com
- Facebook: facebook.com/twoscoopspress
- Twitter: twitter.com/twoscoopspress
Product details
- Publisher : Two Scoops Press (June 30, 2017)
- Language : English
- Paperback : 555 pages
- ISBN-10 : 0692915729
- ISBN-13 : 978-0692915721
- Item Weight : 2.36 pounds
- Dimensions : 7.5 x 1.25 x 9.25 inches
- Best Sellers Rank: #1,674,967 in Books (See Top 100 in Books)
- #1,420 in Computer Programming Languages
- #1,874 in Python Programming
- Customer Reviews:
About the authors
Daniel Roy Greenfeld has been writing fiction professionally since 2014. His fantasy novels take you on fast-paced epic adventures through magical lands. Knights, mages, and Greek mythology–inspired gods fight for power, often resulting in death and destruction. Young squires in awkwardly-fitting armor and apprentice mages still learning spells are left to clean up the mess. Dryads talk to trees and negotiate with the dead. Youthful romances blossom, only to be interrupted by invasions by dark legions. Chivalry is alive, and love triumphs over race and class divisions.
Daniel is also an experienced software professional and co-author of a series of Python web development books. He has given keynote speeches at numerous academic and professional Python and Django conferences around the world. Daniel has worked for NASA as a senior software engineer. He has authored various popular open-source utility libraries, which are in production use by thousands of organizations, including Fortune 500 companies.
To learn more about Daniel:
- Main Website: https://www.danielroygreenfeld.com
- Facebook: https://www.facebook.com/DanielRoyGreenfeld
- Twitter: http://twitter.com/pydanny
Audrey Roy Greenfeld is best known for being a programmer. She created the popular Cookiecutter project templating tool in 2013, now open source on GitHub with over 10,000 stars. She is one of the primary authors of Cookiecutter Django, one of the most widely-used Django web application project templates. She graduated from MIT in 2005 with a degree in electrical engineering and computer science.
Audrey also has a deep passion for fiction writing. Her Ambria series, co-written with her husband Daniel Roy Greenfeld, explores a magical world where a boy is forced to grow up suddenly and help his family fight dark forces.
Audrey is also an artist. She paints, sculpts, and creates generative art. At one point she was a professional artist with a studio practice in San Francisco and a large client base. Her work has been featured in Wired, Technology Review, CNN, and the New York Times. She now makes art primarily for herself. Her art studio is currently in Los Angeles.
Audrey has co-written 5 fantasy books and 4 technical books with Daniel Roy Greenfeld. She has also written and illustrated a children's book.
Customer reviews
Customer Reviews, including Product Star Ratings help customers to learn more about the product and decide whether it is the right product for them.
To calculate the overall star rating and percentage breakdown by star, we don’t use a simple average. Instead, our system considers things like how recent a review is and if the reviewer bought the item on Amazon. It also analyzed reviews to verify trustworthiness.
Learn more how customers reviews work on AmazonCustomers say
Customers find the knowledge base useful for learning best practices and guiding projects. They describe it as a great compendium of Django knowledge that is worth the price.
AI-generated from the text of customer reviews
Customers find the knowledge base helpful. It covers basic advice and best practices, making it a great way to learn best practices. They say it's a vital reference for anyone who's not already a Django master. The book is thorough and draws on real-world examples. Many consider it their favorite technical book.
"...-- at 440 or so well indexed, well sorted pages, this book is exemplary of what it covers, what it doesn't cover, what it reinforces, and what it..." Read more
"...It's very thoroughly researched and draws on real world examples, which I found immediately applicable to my current role as a django dev...." Read more
"This is the best compendium of Django knowledge I've found. It's a vital reference for anyone who's not already a Django master, and probably still..." Read more
"A fantastic overview of everything Django. Buy this to go beyond the free tutorials in the official docs and elsewhere. It's worth every penny." Read more
Customers appreciate the book's value for money. They say it's worth every penny.
"...I stopped. I could see there was value in the book but I just wasn't at a level to where I could appreciate or apply b/c I didn't understand it...." Read more
"...It's worth every penny." Read more
"...Worth every penny!" Read more
Reviews with images
![Just arrived 😊](https://images-na.ssl-images-amazon.com/images/G/01/x-locale/common/transparent-pixel._V192234675_.gif)
Just arrived 😊
Top reviews from the United States
There was a problem filtering reviews right now. Please try again later.
- Reviewed in the United States on September 1, 2017This is the best Django book out there, but that is not sufficient praise. It is the best framework book I have ever read -- at 440 or so well indexed, well sorted pages, this book is exemplary of what it covers, what it doesn't cover, what it reinforces, and what it allows you to skip and read later.
This book does what a framework should do -- it provides all of the material required for good professional formation -- much more than a quickstart book, much less than an encyclopedia of Django, TSD (as it is abbreviated by the many Django managers that have to mention it too many times to write out) is the book for the typical Django user -- a perfectionist with deadlines.
Reading the 15 chapters absolutely required to create and understand Django sites will take you around 15 hours. Reading all 33 chapters--and being able to apply them all -- will take you about 40, and you will then know everything that should be standard for a Django professional.
I have heard it said that, when you are interviewing a prospective Django developer, hearing a mention of "Two Scoops" or "Greenfield" means that the interview is going to go well.
If you want to learn python, read Mark Lutz's "Learning Python". If you want to use python fluidly, read Beazley and Jones' "Python Cookbook". If you want to __understand__ python, read Luciano Ramalho's "Fluent Python".
If you want to make a living as a business programmer in python, read this book.
- Reviewed in the United States on July 27, 2019This is probably my favorite technical book I've ever read. It's very thoroughly researched and draws on real world examples, which I found immediately applicable to my current role as a django dev. It's guided me now through multiple projects, and informed a lot of my decisions for which packages to use.
The only cautionary note is that I would stress that while I found it pretty approachable, it shouldn't be regarded as a tutorial on python or django - true beginners should probably go through tutorials and documentation before they could really use this book. I'd also say that while many of the practices are just fine for many projects, what you'll use if you're coming in on an existing project would heavily depend on the architecture that's set up - the sections on forms and templates probably won't be very useful to you if django is used solely as the backend with Django Rest Framework and the frontend is entirely based on React. But even in those cases, there'll be parallels between serializers and forms that will be quite familiar and many of the practices will still be applicable.
- Reviewed in the United States on December 3, 2017Every Django programmer should have this book. It is the go-to source for people who are no longer beginners, and need to figure out Django best practices. For instance, how should you lay out your project? How can you keep your secret keys secret while doing proper version control? Everything else being equal, should you load your business logic into your view or your model? And so on.
When you start to make the transition from noob to intermediate and up, you will have tons of questions like those, and this book lays it all there for you.
One key strength of this book is that each Chapter (and often, each Chapter section) can be read as a standalone tidbit. This is great when I need to figure out something fast, sort of like a portable Stack Overflow. This strength can become a weakness, though, for more complex topics where I am really clueless (such as class-based views). I hunger for more fully worked out examples in the context of a real project.
It would be amazing if they made a companion volume, something like 'Two Scoops in Practice' walking us through a single, complex project, that they explain from beginning to end, that could be used to illustrate the different things in the book. I would buy ten copies of that and hoard it.
- Reviewed in the United States on June 11, 2019I agree w/ everything said in other 5-star reviews. It's not worth repeating.
What follows is my experience w/ the book as a beginner and now, as an intermediate-level developer.
I bought this book a month or so after I started learning Django.
I had a few small, VERY basic projects under my belt. I asked for a good book so I could fill in some gaps. This was the book that was most recommended.
I read about a tenth of the book and then I just blankly stared as I forced myself through the first 15 chapters. I stopped. I could see there was value in the book but I just wasn't at a level to where I could appreciate or apply b/c I didn't understand it.
I learned 2 things during this 1st attempt: JSON for ENV vars and how to structure the project. But I just had to step back, get a beginner-focused book, and try again later.
After going through "Django for Beginners" by W.S. Vincent, having built Django projects at work and for friends, and being able to reference the official Django docs, I've started to re-read the book. It's like a completely different book. Now that I have my way of doing something do I understand the authors' suggestions for doing it better, correctly, or more efficiently.
- Reviewed in the United States on August 26, 2017This is the best compendium of Django knowledge I've found. It's a vital reference for anyone who's not already a Django master, and probably still useful if you are.
- Reviewed in the United States on November 13, 2017Absolutely the best book for Django when you want to level up. It's not for absolute beginners, but get it once you understand the basics or you'll miss the chance to avoid a lot of dead ends and bad ideas.
- Reviewed in the United States on September 19, 2017A fantastic overview of everything Django. Buy this to go beyond the free tutorials in the official docs and elsewhere. It's worth every penny.
- Reviewed in the United States on February 25, 2018Covers a lot of obvious and basic advice, but fails to deliver on advanced topics...
I am still waiting to find a single piece of help in this book since I've started to use Django.
Top reviews from other countries
- awnirdReviewed in Canada on August 15, 2017
5.0 out of 5 stars Essential and wonderful
This is the essential book for any Django developer. Two Scoops does a fantastic job of making the complexity and scope of Django manageable. It's a thorough, thoughtful reference that is useful for developers of any skill level.
awnirdEssential and wonderful
Reviewed in Canada on August 15, 2017
Images in this review
- Alessandro BottoniReviewed in Italy on January 1, 2019
4.0 out of 5 stars Required reading for Django developer but...
This book is a required reading for every developer who actually wants to use Django in a real-world environment. The fact that it refers to the "old" Django 1.11 is irrelevant: Django 2.X is so similar to Rel 1.11 that you will always be able to use every single concept you learn in this book in your new environment with very little effort.
Despite this, this is *not* a "good introductory book" on Django. Rather, this is a collection of "best practices" you have to know in order to work with Django at a professional level.
If you searching a good introductory book on Django, you should rather read "Django 2 by example by Antonio Melè". I have both books and I'm heavily using both of them.
- vinyasReviewed in India on August 30, 2017
5.0 out of 5 stars Best django book out there
Awesome to be able to get the book. Best django book you can get if you are looking to be better at it.
Thanks to the authors for writing such a good book
vinyasBest django book out there
Reviewed in India on August 30, 2017
Thanks to the authors for writing such a good book
Images in this review
-
Jean-David H.Reviewed in France on April 11, 2018
5.0 out of 5 stars Indispensable pour les pros
J'avais la version précédente du livre, cette version s'enrichit de parties supplémentaires orientées mise en production avec les dernières techniques. Je m'y réfère souvent, c'est à la fois un aide-mémoire et un excellent guide d'apprentissage.
- Rachel WillmerReviewed in the United Kingdom on September 12, 2017
5.0 out of 5 stars If you code Django, buy this book. That's all I need to say.
I've been coding python and Django for over a decade, I've done a Europython keynote talk, some people think I'm an expert. So you might wonder why I bought this book? It's just the fastest way to learn everything that's new in Django 1.11.
But it's not just a rehash of the ChangeLogs; the most valuable part of the book is that it gives you Best Practices for how to use the Django framework. This isn't a beginner's book to teach you Django, it's one that teaches you how to do Django well once you're past the basics.
Excellent! Thanks Daniel and Audrey for writing it, it must have been a ton of work...