-
Notifications
You must be signed in to change notification settings - Fork 2
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
adding (not just overriding) settings should work too #1
Comments
You know I've ran into this too. It's because those are tuples and immutable. I'll see if I can come up with something that makes sense to include in this project. You have any ideas? This is ugly but functional (I think, haven't tried it)
|
A solution might be to work with exec() and compile() to load a series of settings files in order, where each file has full access to settings from previously-loaded files, to update, modify, etc. http://code.djangoproject.com/wiki/SplitSettings#UsingalistofconffilesTransifex |
Thanks, I'll check this out. |
I am now using |
Wow, that does get pretty hairy. Try this before we get too crazy with things. In
I would hate to get complex with this as long as there is a simple solution that accomplishes the same goal. |
Hey sunoano, is this issue resolved? I was going to close it out if you've worked around it. |
It would be nice if things like
INSTALLED_APPS += ('django-extensions',)
would work with settingsdev and/or settingslocal respectively.Of course this isn't just true for INSTALLED_APPS but should work in general. For example, things like this should work:
INTERNAL_IPS = ('127.0.0.1',)
MIDDLEWARE_CLASSES += ('debug_toolbar.middleware.DebugToolbarMiddleware',)
INSTALLED_APPS += ('debug_toolbar',)
The text was updated successfully, but these errors were encountered: