Two Scoops of Django: Best Practices For Django 1.8 is chock-full of even more material that will help you with your Django projects.
We'll introduce you to various tips, tricks, patterns, code snippets, and techniques that we've picked up over the years.
We have put thousands of hours into the third 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 StyleChapter 2: The Optimal Django Environment SetupChapter 3: How To Lay Out Django ProjectsChapter 4: Fundamentals of Django App DesignChapter 5: Settings and Requirements FilesChapter 6: Model Best PracticesChapter 7: Queries and the Database LayerChapter 8: Function- and Class-Based ViewsChapter 9: Best Practices for Function-Based ViewsChapter 10: Best Practices for Class-Based ViewsChapter 11: Form FundamentalsChapter 12: Common Patterns for FormsChapter 13: Templates: Best PracticesChapter 14: Template Tags and FiltersChapter 15: Django Templates and Jinja2Chapter 16: Building REST APIsChapter 17: Consuming REST APIsChapter 18: Tradeoffs of Replacing Core ComponentsChapter 19: Working With the Django AdminChapter 20: Dealing with the User ModelChapter 21: Django's Secret Sauce: Third-Party PackagesChapter 22: Testing Chapter of Doom!Chapter 23: Documentation: Be ObsessedChapter 24: Finding and Reducing BottlenecksChapter 25: Asynchronous Task QueuesChapter 26: Security Best PracticesChapter 27: Logging: Tips and ToolsChapter 28: Signals: Use Cases and Avoidance TechniquesChapter 29: What About Those Random Utilities?Chapter 30: Deployment: Platforms as a ServiceChapter 31: Deploying Django ProjectsChapter 29: Identical Environments: The Holy GrailChapter 32: Continuous IntegrationChapter 33: The Art of DebuggingChapter 34: Where and How to Ask Django QuestionsChapter 35: Closing ThoughtsAppendix A: Packages Mentioned In This BookAppendix B: TroubleshootingAppendix C: Additional ResourcesAppendix D: Internationalization and LocalizationAppendix E: Settings AlternativesAppendix F: Working with Python 3
What is everyone saying about Two Scoops of Django?
I read the first edition cover to cover. The second one raises the bar again. It's pedagogical, entertaining, and thoughtful. -- Aymeric Augustin, Django core developer.Whether you're a Django beginner or a seasoned veteran, I recommend you get this book, and read it cover to cover, and keep it near you for easy reference. --Ken Cochrane, Django developer since 2008A single read-through of Two Scoops of Django gave me so many lightbulbs and tips; I had to go back for a second helping. -- Lynn Root, Spotify engineer, PSF Director, and PyLadies ambassador.Make sure you have your favorite project next to you while reading. You'll be doing some rewriting. -- Bryan Veloso, GitHubber, PyCon PH Keynote SpeakerYou know those lessons you le ..
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 REST APIs
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 3