Specifically for tests, I would use conftest.py for this. Django has this global state, so working with it in tests is tricky...
f
freezing-fall-2672
09/01/2023, 1:01 PM
Alright I’ll give it a try
h
happy-kitchen-89482
09/01/2023, 4:15 PM
But there are other ways to do the tricks, what we did in the example-django repo happened to work well for us internally, we had like 20 Django services deployed from a single repo