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

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 ContentsChapter 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 APIs with Django Rest FrameworkChapter 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 2Appendix G: Channels and WebsocketsWhat People Say About Two Scoops of Django This is the swiss army knife for every Django developer. -- Jannis Gebauer, maintainer and 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

Author: Daniel Roy Greenfeld

Learn more