About This Book
- Unravel the common problems of web development in Django
- Learn the current best practices while working in Django 1.7 and Python 3.4
- Experience the challenges of working on an end-to-end social network project
Who This Book Is For
If you want to learn how best to utilize commonly found patterns and learn best practices in developing applications with Django, this is the book for you. This book, like Django itself, is accessible to amateur and professional developers alike and assumes little in the way of prior experience.
Although written for Python 3, the majority of the code in this book works in Python 2 or can be easily translated.
Learning how to write better Django code to build more maintainable websites either takes a lot of experience or familiarity with various design patterns. Filled with several idiomatic Django patterns, Django Design Patterns and Best Practices accelerates your journey into the world of web development.
Discover a set of common design problems, each tackling aspects of Django including model design and Views, and learn several recommended solutions with useful code examples and illustrations. You'll also get to grips with the current best practices in the latest versions of Django and Python. Creating a successful web application involves much more than Django, so advanced topics including REST, testing, debugging, security, and deployment are also explored in detail.
Table of Contents
Chapter 1: Django and Patterns
Chapter 2: Application Design
Chapter 3: Models
Chapter 4: Views and URLs
Chapter 5: Templates
Chapter 6: Admin Interface
Chapter 7: Forms
Chapter 8: Dealing with Legacy Code
Chapter 9: Testing and Debugging
Chapter 10: Security
Chapter 11: Production-ready
Appendix: Python 2 versus Python 3