DjancoCon 2021 WorkShop | Managing multiple Django services in a single repo | Benjy Weinberger

Modern software systems often involve developing and deploying multiple related services. The microservice architecture is a prominent example of this. These services often share underlying data structures, models, utilities, protocols and other core code.

Django is an excellent choice for building individual services, and some functionality can be shared between them by reusing apps. But Django projects themselves are standalone by nature, and there is no standard infrastructure for streamlining the management many related services. As a result we're often forced to treat each project as an island, with its own settings and deployment configuration, possibly in its own repo.

In this workshop we will demonstrate: - The challenges of maintaining many interrelated Django projects. - The advantages of having multiple Django projects coexist in a single shared repo. - The tooling you need to work effectively in a Django monorepo, with a focus on the Pants build system. - Specific examples of good practices that allow you to maintain a growing yet streamlined stable of interrelated Django-based microservices with minimal boilerplate and copypasta.

Code along with us, and ask questions along the way!

Date Added: September 19, 2024

Watch Video