Reseña del editor
The third edition, Two Scoops of Django: Best Practices For Django 1.8 is available! Revised and expanded to 532 pages, it's a whole new book full of new material. Please consider it before purchasing this edition!
Two Scoops of Django: Best Practices For Django 1.6 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 second edition of the book, writing and revising its material to include over 130 new pages of concise, example-packed text containing 5 new chapters and 3 new appendices.
Table of Contents
- Chapter 1: Coding Conventions
- 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: Database/Model Best Practices
- Chapter 7: Function-and Class-Based Views
- Chapter 8: Best Practices for Function-Based Views
- Chapter 9: Best Practices for Class-Based Views
- Chapter 10: Common Patterns for Forms
- Chapter 11: More Things To Know About Forms
- Chapter 12: Templates: Best Practices
- Chapter 13: Template Tags and Filters
- Chapter 14: Building REST APIs
- Chapter 15: Consuming REST APIs in Templates
- Chapter 16: Tradeoffs of Replacing Core Components
- Chapter 17: Working With the Django Admin
- Chapter 18: Dealing with the User Model
- Chapter 19: Django's Secret Sauce: Third-Party Packages
- Chapter 20: Testing Chapter of Doom!
- Chapter 21: Documentation: Be Obsessed
- Chapter 22: Finding and Reducing Bottlenecks
- Chapter 23: Security Best Practices
- Chapter 24: Logging: Tips and Tools
- Chapter 25: Signals: Use Cases and Avoidance Techniques
- Chapter 26: What About Those Random Utilities?
- Chapter 27: Deployment: Platforms as a Service
- Chapter 28: Deploying Django Projects
- Chapter 29: Identical Environments: The Holy Grail
- Chapter 30: Continuous Integration
- Chapter 31: Where and How to Ask Django Questions
- Chapter 32: 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
What is everyone saying about Two Scoops of Django?
Biografía del autor
- 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.
- It's basically a 446 page checklist to getting your Django code right ~ Kevin A Stone, author of the Django Rest Framework and Angular Tutorial
- 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 2008
- A 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 Speaker
- You 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"
Daniel and Audrey Roy Greenfeld are best known for their open-source community leadership work on the following projects:
- DjangoPackages.com, the Django package index and comparison site.
- Cookiecutter, a Python package for generating projects from project templates.
- Cookiecutter-PyPackage, a project template for creating advanced python projects.
- Cookiecutter-Django, a project template for creating advanced Django projects.
- PyLadies, a women's outreach/mentorship group. Nurturing the group was basically a 2nd fulltime job for them in 2011, and they continue to run monthly Inland Empire PyLadies events.
- Barcamp Django SF, the first Django unconference.
- The first ever PyCon Philippines, a 300-person conference about the Python programming language held in the Philippines.
- The LA Open Source Hackathon event series, which brings together open-source developers from different programming backgrounds.
They do Python and Django development and run a small Python/Django consulting shop called Cartwheel Web. They've spoken at dozens of conferences and have given keynote speeches at DjangoCon Europe, EuroPython, PyCon Poland, PyCon Philippines, PyCon Australia, PyCon New Zealand, Python Brasil, and PyCon Argentina.
"Sobre este título" puede pertenecer a otra edición de este libro.