Feature toggle base classes
This abstract base class exposes the basic API required by toggle classes. Toggle instances are tracked in the
_class_instances class method, which is exposed via the
get_instances class method.
Return the list of class instances sorted by name.
Validate the format of the instance name. This should raise a ValueError in case of incorrect format. This method should only be used by child classes, mostly for overriding purposes.
Setting-derived feature toggles
Feature toggle based on the value of a key in a Django setting
dict. Use as follows:
MY_FEATURE = SettingDictToggle(“SETTING_NAME”, “key” default=False, module_name=__name__)
This module includes all code related to feature toggles. Remember to import publicly available classes and functions in toggles/__init__.py.