0%

Book Description

Develop standalone Django apps to serve as the reusable building blocks for larger Django projects. This book explores best practices for publishing these apps, with special considerations for testing Django apps, and strategies for extracting existing functionality into a separate package. 

This jumpstart reference is divided into four distinct and sequential sections, all containing short, engaging chapters that can be read in a modular fashion, depending on your level of experience. The first section covers the structure and scope of standalone Django apps. The second section digs into questions about pulling code out of existing projects and into new standalone apps for reuse. The third section details additional, advanced technical best practices toward making standalone apps as broadly useful as possible. The fourth and final section covers strategies for managing a published Django app.

Django Standalone Apps is the perfect resource for developers who have at least some prior experience working with Django web applications and want to simplify their deployments and share their knowledge as open source packages. 

What You'll Learn
  • Scope a standalone Django app project for optimum usefulness
  • Extract code from existing projects to reuse
  • Test a standalone app outside of your Django project
  • Reuse your own code for increased delivery cadence and code quality
  • Review best practices for maintaining a Django app package
Who This Book Is For

Professional developers who work with Django. Deep expertise is not required or expected, but readers should have working familiarity with Django.


Table of Contents

  1. Cover
  2. Front Matter
  3. Part I. Basic Components of a Django App
    1. 1. Defining the scope of a Django standalone app
    2. 2. Structuring standalone Django apps
    3. 3. Testing
    4. 4. Model migrations
    5. 5. Templates
    6. 6. Using static files
    7. 7. Namespacing in your app
    8. 8. Creating a basic package
  4. Part II. Scoping and Extracting a Reusable App
    1. 9. Scoping and drawing boundaries
    2. 10. Separating your app
    3. 11. Adding your app back in
  5. Part III. Beyond the Basics
    1. 12. Handling app settings
    2. 13. Internationalization
    3. 14. Managing version compatibility
    4. 15. Mixed dependency support
    5. 16. Modularity
    6. 17. Better packaging
  6. Part IV. Managing Your Standalone App
    1. 18. Licensing
    2. 19. Documenting your standalone app
    3. 20. Additional Testing
    4. 21. Automating
    5. 22. Databases and other backend-specific considerations
    6. 23. Collaborating
    7. 24. Using app templates
  7. Back Matter
18.226.93.209