JarrodCTaylor/vim-python-test-runner

Document/explain the "environment" config option

blueyed opened this issue · 1 comments

It looks like it just gets passed as first argument to manage.py?
Is this a common method? You would have to change your manage.py file accordingly to handle this argument, wouldn't you?

What I am using instead is --settings=project.settings.test.

I could imagine mapping the env arg in manage.py to the different setting modules.

You are correct this is not default Django behavior. We (at my day job) typically modify manage.py to take an environment variable as the first argument which has the same result as the method that you mention in your comment.

I am posting an update to the docs that specifies that the environment flag only needs to be used if you have modified manage.py