{{{
for key in dir(settings):
settings.__dict__[key] = getattr(settings, key)
}}}
`LazySettings` itself could do this caching in its own `__dict__` to give
great speed to all! It can also be done in a way that is tested to
interact better with other parts of Django, such as `override_settings`.
--
Ticket URL: <https://code.djangoproject.com/ticket/27625>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* has_patch: 0 => 1
* stage: Unreviewed => Ready for checkin
Comment:
[https://github.com/django/django/pull/7732 PR]
--
Ticket URL: <https://code.djangoproject.com/ticket/27625#comment:1>
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"c1b221a9b913315998a1bcec2f29a9361a74d1ac" c1b221a9]:
{{{
#!CommitTicketReference repository=""
revision="c1b221a9b913315998a1bcec2f29a9361a74d1ac"
Fixed #27625 -- Made LazySettings cache attributes in __dict__.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/27625#comment:2>