Two Scoops of Django: Best Practices for Django 1.8

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 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 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 3What 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 learn when projects blow up in your face? This book contains several projects worth of such lessons. -- Lennart Regebro, author of "Porting to Python 3"This book should prove to be an amazing resource for any new-to-Django developer that picks it up. -- Kenneth Love, Creator of "Getting Started with Django"This is the book I wished had existed and I could have read when I started learning Django. -- Barry Morrison, Linux systems engineer and Django developer

Author: Daniel Roy Greenfeld

Learn more