Skip to content
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

Add ability to specify a default location for settings file #87

Closed
dkliban opened this issue Sep 24, 2018 · 2 comments
Closed

Add ability to specify a default location for settings file #87

dkliban opened this issue Sep 24, 2018 · 2 comments

Comments

@dkliban
Copy link

dkliban commented Sep 24, 2018

Users of Django apps have to specify a 'DYNACONF_SETTINGS' environment variable to specify where their settings file is located. Application writers would benefit from being able to set a SETTINGS config in their settings.py which would provide a default location for a settings file. If the file is not present, dynaconf should log this, and allow django to start up normally.

@rochacbruno
Copy link
Member

Hi @dkliban I think this issue is related to #73

In your case when using Django I guess (need to test it) you can put in your settings.py

SETTINGS_MODULE_FOR_DYNACONF=/etc/foo.yml

Then this value would be the default unless it is overwritten by environment variable {PREFIX}_SETTINGS

@dkliban
Copy link
Author

dkliban commented Sep 24, 2018

That worked for me! Thank you @rochacbruno

@dkliban dkliban closed this as completed Sep 24, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants