1👍
✅
Running a django process will not affect the settings of another process. Just make sure to explicitly pass the --settings
flag to your manage.py
script when you run your tests/dev server/ etc..
e.g.
python manage.py test --settings project/settings/test.py
python manage.py runserver --settings project/settings
I prefer having a set of shell scripts that get sourced when I run my test environment (you can configure that with a test runner, see the docs).
Source:stackexchange.com