Django Standalone Apps: Learn to Develop Reusable Django Libraries

  • 2h 10m
  • Ben Lopatin
  • Apress
  • 2020

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.

About the Author

Ben is cofounder of a web development consultancy and has been working professionally with Django for almost a decade. He has architected and led development on Django-based web applications including, custom content management systems, media platforms, and multi tenant back office solutions.

He lives in the Rochester, NY, area, and graduated from the University of Virginia with a degree in Economics. Previously he managed the data and analytics services for a market research firm and was an IT strategy consultant for a global management consulting firm. His own standalone apps include Django Organizations, a long term project for managing multi user accounts in Django projects.

In this Book

  • Defining the Scope of a Django Standalone App
  • Structuring Standalone Django Apps
  • Testing
  • Model Migrations
  • Templates
  • Using Static Files
  • Namespacing in Your App
  • Creating a Basic Package
  • Scoping and Drawing Boundaries
  • Separating Your App
  • Adding Your App Back in
  • Handling App Settings
  • Internationalization
  • Managing Version Compatibility
  • Mixed Dependency Support
  • Modularity
  • Better Packaging
  • Licensing
  • Documenting Your Standalone App
  • Additional Testing
  • Automating
  • Databases and Other Backend-Specific Considerations
  • Collaborating
  • Using App Templates
SHOW MORE
FREE ACCESS

YOU MIGHT ALSO LIKE

Rating 4.4 of 12 users Rating 4.4 of 12 users (12)
Rating 3.3 of 6 users Rating 3.3 of 6 users (6)
Rating 4.9 of 13 users Rating 4.9 of 13 users (13)