django-classy-settings icon indicating copy to clipboard operation
django-classy-settings copied to clipboard

Add "ready" callback function support

Open funkybob opened this issue 1 year ago • 0 comments

Currently due to a implementation detail the class is only instantiated once when invoking Settings.use().

If this were formalised, and an optional ready() method specified, we could allow a post-settings-selection callback to be guaranteed invoked.

One issue with this is allowing access to the full set of global settings and defaults, if necessary.

Given currently django iterates the module using dir() we could invoke ready() after that method has been exhausted?

funkybob avatar Oct 05 '23 02:10 funkybob