# output 'service.settings.local'
print settings.SETTINGS_MODULE
# from code override_settings
override = UserSettingsHolder(settings._wrapped)
# output None
print override.SETTINGS_MODULE
# output 'service.settings.local'
print override.default_settings.SETTINGS_MODULE
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/25911>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* needs_better_patch: => 0
* needs_tests: => 0
* needs_docs: => 0
Comment:
Could you elaborate on why this is a problem?
--
Ticket URL: <https://code.djangoproject.com/ticket/25911#comment:1>
* status: new => closed
* resolution: => needsinfo
--
Ticket URL: <https://code.djangoproject.com/ticket/25911#comment:2>
Comment (by kwist):
I have because of this began to fall tests, as this variable is used in a
third-party module
--
Ticket URL: <https://code.djangoproject.com/ticket/25911#comment:3>
Comment (by timgraham):
I'm not sure, but it might be viewed as intentional/correct behavior since
if you're overriding some settings, you're no longer using the original
settings module. I'd be interested to see how the third-party module is
using the variable.
--
Ticket URL: <https://code.djangoproject.com/ticket/25911#comment:4>
Comment (by kwist):
Replying to [comment:4 timgraham]:
> I'm not sure, but it might be viewed as intentional/correct behavior
since if you're overriding some settings, you're no longer using the
original settings module. I'd be interested to see how the third-party
module is using the variable.
Coffin: Jinja2 extensions for Django
[https://github.com/coffin/coffin/blob/master/coffin/common.py#L205
URLExtension class, line 205]
--
Ticket URL: <https://code.djangoproject.com/ticket/25911#comment:5>
Comment (by timgraham):
I don't find that usage a compelling reason to fix this ticket as it's
based on a common convention (but not a requirement) of the structure a
Django project. Also,
[https://docs.djangoproject.com/en/1.9/releases/1.8/#passing-a-dotted-
path-to-reverse-and-url reversing URLs by dotted path is deprecated] and
removed in Django 1.10.
--
Ticket URL: <https://code.djangoproject.com/ticket/25911#comment:6>
Comment (by kwist):
Maybe it's worth it to add to the documentation?
--
Ticket URL: <https://code.djangoproject.com/ticket/25911#comment:7>