Two Scoops of Django 3.x: Best Practices for the Django Web Framework
Live, Online Course: Two Scoops of Django
On August 14th Daniel Feldroy is giving a full day instruction about the concepts and techniques of Two Scoops of Django. This is fully interactive, attendees are encouraged to ask questions.
Shipping Costs for the Printed Book
- E-Book: Free
- Print: Varies by Country
- US & UK: Approximately US$5.99
- Rest of the world: US$7.99
Details of the E-Book
540+ pages, 446 while in Alpha
Once again, we're releasing a book chock-full of material that will help you with your Django projects!
In Two Scoops of Django we introduce you to various tips, tricks, patterns, code snippets, and techniques that we’ve picked up over the years. This book is an update and expansion of previous editions:
- Updated for Django 3.x (which will be maintained by the core team until at least April 2024!)
- Updated to match changes in the Django ecosystem, with corrections and clarifications added thanks to the feedback of our readers and technical reviewers.
- Updated for Python 3.8 and/or 3.9
- Revised material on nearly every topic within the book.
- New material on GraphQL, Django REST Framework, security, forms, models, and more.
Two Scoops of Django 3.x: Best Practices for the Django Web Framework is available in PDF now, Kindle, ePub, and print formats later. The paperback will also be made available on Amazon and Flipkart.
How much does it cost?
The ebook sells for US$49.95. Site licenses are also available.
For now it's just the PDF but you'll get the epub and mobi files when they come out. You will also get all updates to Two Scoops of Django 3.x.
When was the alpha released?
The alpha was released on May 11th.
What do you mean by "alpha"?
The book is still being updated. There will be formatting issues. Some areas may be incorrect or unclear. Not all chapters will be available, please examine the table of contents.
What does 3.x mean?
It means that this book is going to support Django's 3.0, 3.1, and 3.2 LTS releases, giving it a lifetime of about 3 years of usefulness.
For e-books, we're starting with PDF then expanding to epub and mobi formats.
For print, we definitely will have a paperback version. We are also exploring coil-bound and hardcover versions.
When will the print edition come out?
We're not certain but no earlier than late August of 2020. Here's why:
1. We want to have printed books good until April 2024, which means they have to link to Django 3.x docs. Those probably won't be available until August 2020.
2. We have to examine multiple printed proofs before launch. This takes time as they have to be shipped to us, and shipping may have delays due to the pandemic.
Is this a Django tutorial?
If you want a Django tutorial, please consider our Django Crash Course book instead. That is a guided walkthrough where we build a real, production-quality Django web application from the ground up. Designed to build solid foundations with Django fast, it's the perfect book for getting ready for the more advanced content in Two Scoops of Django.
Two Scoops of Django is NOT for beginners just starting out. Rather, it is meant for people who are at least building their first project.
I've never programmed before. Is this book for me?
We recommend you learn the basics of Python and Django programming first. Spend a weekend with tutorials such as Learn Python the Hard Way or Automate the Boring Stuff with Python, then pick up Django Crash Course. Then you should read Two Scoops of Django.
Can you recommend a Django tutorial?
Yes! We published our own tutorial, the Django Crash Course.
How big will Two Scoops of Django 3.x be?
We anticipate it being over 500 pages. However, to accommodate our printers, the book size will change. This will prompt a change in page count.
Will there be a discounted ebook/print bundle?
For people who buy the e-book now we'll send a big discount code when the print edition is ready.
Can I get an autographed copy?
We thought hard about this and decided against it. While we wish we could autograph every copy, signing books creates restrictions that make logistics challenging. For example, if we find a printer in Australia that can ship books to a fulfillment warehouse in Australia, we would have to fly to Australia to sign the books between printing and shipment. Flying to every country would be amazing but is prohibitively expensive. That said, we're very happy to sign copies of our books at conferences and meetups.
Can I buy the book with cryptocurrency?
Absolutely! We accept Bitcoin, Bitcoin Cash (BCH), Litecoin, Ethereum, and more. To see our options, during checkout, choose "Coinbase Commerce" for your payment option.
I'm in South America, can I buy the book with EBANX?
Yes! We now support payments with EBANX for Argentina, Brazil, Chile, and Peru. Residents of those countries can pay in their own currency as well as in installments (pay a portion of the total cost each month). The details of how this works depend on the country.
If you are a resident of those countries (Argentina, Brazil, Chile, and Peru), choose EBANX as an option during checkout.
I'm in Mexico, can I buy the book with EBANX?
Yes! We now support payments with EBANX for Mexico. Residents of Mexico can pay in pesos as well as in installments (pay a portion of the total cost each month).
Choose EBANX as an option during checkout.
I'm in Colombia, can I buy the book with EBANX?
Not yet. We're still in the midst of paperwork to get set up with EBANX for Colombia residents.
I'm in Iran, how can I buy the book?
Due to circumstances beyond our control we cannot legally do business with residents or organizations based in Iran. We want to explore options, but need to find a California-based attorney before we consider any of them. This is something we have scheduled to do the in the latter half of May 2020.
I'm in India, how can I buy the book?
If you do not have access to payment methods that work with Stripe, PayPal, or cryptocurrency, in the latter half of May we will be setting up our book for sale with our friends at Pothi again.
I'm in XYZ and our credit cards don't work with Stripe or PayPal, how can I buy the book?
We are happy to explore additional distributors and payment gateways in other countries. If you want to know our requirements for accepting other forms of payment, please email us.
In the meantime, various forms of cryptocurrency can be used to make a purchase from this store.
What's your release schedule?
We want to get the book out as soon as possible. However, updating Two Scoops of Django is a massive undertaking, one that we've discovered is harder than writing a book from scratch. Therefore, our tentative schedule is:
- Alpha E-Book: May 11th, 2020, with frequent updates as we improve the book.
- Beta E-Book: ??? 2020, with frequent updates as we improve the book.
- Final E-Book and Print Versions: ??? 2020. Once it goes out to print in perfect bound, coil, and hardcover, updates to the Django 3.x edition will slow down and eventually stop.
We will update this schedule based on changes in Django and the ability to get prototypes from printers.
If I purchased the Alpha e-book, do I get access to the Beta and Final versions?
Yes, e-book purchasers get access to all subsequent versions of the 3.x edition of Two Scoops of Django.
What happens if I use up all my downloads?
If you use up all your downloads you can email us to get them reset back to five (5).
Also, any time we update our books, we reset the download count back to five.
I bought an earlier version. Do I get a discount?
If you think of this book as a monthly subscription service where you buy new editions every few years, you will see that Two Scoops of Django is an amazing deal. For example, if you bought the 1.11 edition just six months ago at US$42.95, that's like paying US$7.15/month for the content of the book. If you bought at launch in 2017, then you've paid US$1.19/month.
Based on this, we should move to a subscription-style service. However, the book industry (Amazon, Flipkart, etc), doesn't allow for subscription service. Furthermore, we want to work on other things besides Two Scoops of Django. That's how we keep our skills sharp enough to write about them!
In any case, what this tells us that we're selling our knowledge at a bargain, that there is no need for discounts for previous buyers. We want to raise our baby daughter well and use proceeds to help fund our open source work.
What about Django 4 and 5?
Short answer: The next edition will be for Django 5. We're skipping Django 4.
Long answer: Django 3 just came out and per Django's official list of supported versions, 4 won't be coming out until early 2022. Django 3.2 LTS remains supported until 2024, well after Django 4.0 is deprecated. Therefore, there won't be another edition of this book until Django 5.0 is released.
Will there be any translations?
Yes, while we don't have a concrete schedule for delivery, the following are in the works:
- Brazillian Portuguese (included with purchase of English version from feldroy.com)
- Spanish (included with purchase of English version from feldroy.com)
We're also talking to separate vendors for the following languages. These will require purchase on other sites:
If you represent a company that translates textbooks and want to translate our books to another language, please contact us at firstname.lastname@example.org.
Who are the authors?
Daniel and Audrey Feldroy nee Roy Greenfeld are long-time authors. They are also experienced software engineers each with decades of programming experience at MIT, NASA, Microsoft, SharpCast, and more. In 2018 they were given the Frank Willison Community Award for their contributions to the Python programming language. In addition to writing Two Scoops of Django, they created:
- Django Crash Course
- Django Packages
- Cookiecutter Django
- Audrey Roy Greenfeld
- Much more!
Can we see the table of contents?
This is subject to change. Bold chapter/appendix names are what is currently in the e-book. The unbolded chapters will be included as fast as we can update them.
- Coding Style
- The Optimal Django Environment Setup
- How To Lay Out Django Projects
- Fundamentals of Django App Design
- Settings and Requirements Files
- Model Best Practices
- Queries and the Database Layer
- Function- and Class-Based Views
- Best Practices for Function-Based Views
- Best Practices for Class-Based Views
- Asynchronous Views (3.1+)
- Form Fundamentals
- Common Patterns for Forms
- Templates: Best Practices
- Template Tags and Filters
- Django Templates and Jinja2
- Building APIs with Django Rest Framework
- Building GraphQL APIs
- Tradeoffs of Replacing Core Components
- Working With the Django Admin
- Dealing with the User Model
- Django's Secret Sauce: Third-Party Packages
- Testing Chapter of Doom!
- Documentation: Be Obsessed
- Finding and Reducing Bottlenecks
- Asynchronous Task Queues
- Security Best Practices
- Logging: Tips and Tools
- Signals: Use Cases and Avoidance Techniques
- What About Those Random Utilities?
- Deployment: Platforms as a Service
- Deploying Django Projects
- Continuous Integration
- The Art of Debugging
- Where and How to Ask Django Questions
- Closing Thoughts
- Packages Mentioned In This Book
- Additional Resources
- Internationalization and Localization
- Project Layout Alternatives
- Settings Alternatives
- Channels and Websockets
Do you have an online class version of Two Scoops of Django?
Periodically, Daniel Feldroy teaches a six hour live online class on Django and Python best practices, tips, and tricks. He covers everything from code architecture to model design to API development to bottleneck analysis to user accessibility and much more. This is not a beginner tutorial, it is meant for developers who have begun to create real projects with Django.
This is a live, online event. It is not recorded. Attendees can ask questions.
You can discover when the class is next scheduled by visiting our events page.