New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
An option to specify .env filename #73
Comments
Hi @balta2ar while I think it's a good idea too, and thinking about the best way how to implement it, you're still can use config = AutoConfig(search_path='./staging-env/') while your you have this |
Here is a proposal to support a custom config file name https://github.com/henriquebastos/python-decouple/pull/76/files |
I don't understand the need for this since the role purpose of Can anyone detail a concrete and real use case for this? |
Running Django tests is an example of a special case where values in |
|
@pirate so this seems to be specific for you where your workflow is not align with The easy way to deal with this kind of particularity is to compliment your workflow with some For instance:
|
Hi. Similarly to django-configurations, it could be very convenient to be able to specify an environment filename with variables, not just to have
.env
hard-coded. For example, I could therefore specify a set of vars for different environments, e.g. prod.env, staging.env, and I could switch them using another env variable, e.g.:The text was updated successfully, but these errors were encountered: