hey again everybody. is this still the best practi...
# general
f
hey again everybody. is this still the best practice to configure Django settings? https://github.com/pantsbuild/example-django/blob/main/helloworld/greet/conftest.py I've also seen f.e. to set in
pants.toml
:
Copy code
[test]
extra_env_vars = ["DJANGO_SETTINGS_MODULE=app.settings"]
h
Specifically for tests, I would use conftest.py for this. Django has this global state, so working with it in tests is tricky...
f
Alright I’ll give it a try
h
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