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

using waffle in settings.py #90

Closed
NadavK opened this issue Oct 8, 2013 · 2 comments
Closed

using waffle in settings.py #90

NadavK opened this issue Oct 8, 2013 · 2 comments

Comments

@NadavK
Copy link

NadavK commented Oct 8, 2013

Are there any caveats with using Waffle Switches to conditionally change settings in my project's settings.py?
For instance, is it required to restart the Django process for the changes to take effect?
And if a request is required, what is the best way to do this automatically?

Also on SO: http://stackoverflow.com/questions/19250316/using-waffle-to-toggle-settings-py

@tobych
Copy link

tobych commented Oct 8, 2013

AFAIK that's not what Waffle's for. Although there are some settings it's safe to change at run-time, in general you should avoid this. I imagine the problem you have is really wanting to change settings at all at run-time, rather than not being able to do that with Waffle. What settings is it that you want to change?

@jsocol
Copy link
Collaborator

jsocol commented Oct 9, 2013

Toby's right, Waffle doesn't interact with settings that way. You can use something like constance if you really need to tweak settings-like things. I'll put a more complete comment on SO.

@jsocol jsocol closed this as completed Oct 9, 2013
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

3 participants