Minted - Shop now
Buy new:
-25% $29.91
FREE delivery Tuesday, February 18 on orders shipped by Amazon over $35
Ships from: Amazon
Sold by: SellersPremium
$29.91 with 25 percent savings
List Price: $39.95
Get Fast, Free Shipping with Amazon Prime FREE Returns
FREE delivery Tuesday, February 18 on orders shipped by Amazon over $35. Order within 18 hrs 1 min
Only 1 left in stock - order soon.
$$29.91 () Includes selected options. Includes initial monthly payment and selected options. Details
Price
Subtotal
$$29.91
Subtotal
Initial payment breakdown
Shipping cost, delivery date, and order total (including tax) shown at checkout.
Ships from
Amazon
Amazon
Ships from
Amazon
Returns
30-day refund/replacement
30-day refund/replacement
This item can be returned in its original condition for a full refund or replacement within 30 days of receipt.
Payment
Secure transaction
Your transaction is secure
We work hard to protect your security and privacy. Our payment security system encrypts your information during transmission. We don’t share your credit card details with third-party sellers, and we don’t sell your information to others. Learn more
$2.36
Item in very good condition! Textbooks may not include supplemental items i.e. CDs, access codes etc... Item in very good condition! Textbooks may not include supplemental items i.e. CDs, access codes etc... See less
$3.98 delivery February 24 - 25. Details
Only 1 left in stock - order soon.
$$29.91 () Includes selected options. Includes initial monthly payment and selected options. Details
Price
Subtotal
$$29.91
Subtotal
Initial payment breakdown
Shipping cost, delivery date, and order total (including tax) shown at checkout.
Access codes and supplements are not guaranteed with used items.
Ships from and sold by glenthebookseller.
Kindle app logo image

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.

QR code to download the Kindle App

Follow the authors

Something went wrong. Please try your request again later.

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

4.5 4.5 out of 5 stars 103 ratings

{"desktop_buybox_group_1":[{"displayPrice":"$29.91","priceAmount":29.91,"currencySymbol":"$","integerValue":"29","decimalSeparator":".","fractionalValue":"91","symbolPosition":"left","hasSpace":false,"showFractionalPartIfEmpty":true,"offerListingId":"CiJJJpQVfY1txgIuOTDJ%2BmLsd%2FUA9vzJNEg0piuSTBhdQ%2BZI4ZWJCA4x0Qw21u6EzjvYdpwg7L0VvrRKCo2tSyESzyq%2Fo%2By6%2BTkhzbhxE%2FO%2Fu0G%2B72%2BKsSTGx4%2BOKXfcmMjriyTg76l1SBuAosP0OA03HTQbYziKUVI1GG9f%2FQrGatp2kEgeUQ%3D%3D","locale":"en-US","buyingOptionType":"NEW","aapiBuyingOptionIndex":0}, {"displayPrice":"$2.36","priceAmount":2.36,"currencySymbol":"$","integerValue":"2","decimalSeparator":".","fractionalValue":"36","symbolPosition":"left","hasSpace":false,"showFractionalPartIfEmpty":true,"offerListingId":"CiJJJpQVfY1txgIuOTDJ%2BmLsd%2FUA9vzJZm%2FnGQa%2FD0Dp%2FZESdtzKTZJSK8AE9h9V3X6wmzeyWl37jrDO0%2F%2FcVVLwnEKC%2B9RKv5ZAAnG7Vl4trl3Les3SXZBVM0FuS2CGOAAFkh%2FwN46UBnXCuXwDwBJU%2FNfJyRfNZZI68Afs1IRNSL5FdnL8qEJc2DnN6tSo","locale":"en-US","buyingOptionType":"USED","aapiBuyingOptionIndex":1}]}

Purchase options and add-ons

Two Scoops of Django 1.11 Will Help You Build Django Projects

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
What People Say About Two Scoops of Django
  • 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

Frequently bought together

This item: Two Scoops of Django 1.11: Best Practices for the Django Web Framework
$29.91
Get it as soon as Tuesday, Feb 18
Only 1 left in stock - order soon.
Sold by SellersPremium and ships from Amazon Fulfillment.
+
$47.49
Get it as soon as Monday, Feb 17
In Stock
Ships from and sold by Amazon.com.
+
$39.00
Get it as soon as Monday, Feb 17
In Stock
Ships from and sold by Amazon.com.
Total price: $00
To see our price, add these items to your cart.
Details
Added to Cart
spCSRF_Treatment
Some of these items ship sooner than the others.
Choose items to buy together.

Editorial Reviews

About the Author

Daniel and Audrey Roy Greenfeld are experienced software professionals and co-authors of a series of Python web development books. They have given keynote speeches at numerous academic and professional Python and Django conferences around the world. Hailing experience with NASA and MIT, they 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 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
  • Customer Reviews:
    4.5 4.5 out of 5 stars 103 ratings

About the authors

Follow authors to get new release updates, plus improved recommendations.

Customer reviews

4.5 out of 5 stars
103 global ratings

Review this product

Share your thoughts with other customers

Customers 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

Select to learn more
10 customers mention "Knowledge base"10 positive0 negative

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

3 customers mention "Value for money"3 positive0 negative

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

Just arrived 😊
5 out of 5 stars
Just arrived 😊
Thanks Daniel and Audrey for shared you great knowledge with us. I am very excited to start read this book to learn more about Django.
Thank you for your feedback
Sorry, there was an error
Sorry we couldn't load the review

Top reviews from the United States

  • Reviewed in the United States on September 1, 2017
    This 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.
    23 people found this helpful
    Report
  • Reviewed in the United States on July 27, 2019
    This 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, 2017
    Every 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.
    4 people found this helpful
    Report
  • Reviewed in the United States on June 11, 2019
    I 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.
    4 people found this helpful
    Report
  • Reviewed in the United States on August 26, 2017
    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 useful if you are.
    2 people found this helpful
    Report
  • Reviewed in the United States on November 13, 2017
    Absolutely 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.
    One person found this helpful
    Report
  • Reviewed in the United States on September 19, 2017
    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.
    One person found this helpful
    Report
  • Reviewed in the United States on February 25, 2018
    Covers 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.
    One person found this helpful
    Report

Top reviews from other countries

Translate all reviews to English
  • awnird
    5.0 out of 5 stars Essential and wonderful
    Reviewed in Canada on August 15, 2017
    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.
    Customer image
    awnird
    5.0 out of 5 stars
    Essential and wonderful

    Reviewed in Canada on August 15, 2017
    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.
    Images in this review
    Customer image
  • Alessandro Bottoni
    4.0 out of 5 stars Required reading for Django developer but...
    Reviewed in Italy on January 1, 2019
    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.
  • vinyas
    5.0 out of 5 stars Best django book out there
    Reviewed in India on August 30, 2017
    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
    Customer image
    vinyas
    5.0 out of 5 stars
    Best django book out there

    Reviewed in India on August 30, 2017
    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
    Images in this review
    Customer image
  • Jean-David H.
    5.0 out of 5 stars Indispensable pour les pros
    Reviewed in France on April 11, 2018
    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 Willmer
    5.0 out of 5 stars If you code Django, buy this book. That's all I need to say.
    Reviewed in the United Kingdom on September 12, 2017
    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...