Simple feature toggle tool for Leonardo CMS
Project description
==========================
Leonardo leonardo-feature-switcher
==========================
Simple feature toggle tool for Leonardo CMS
.. contents::
:local:
Installation
------------
.. code-block:: bash
pip install leonardo-feature-switcher
add *feature_switchers* to LEONARDO_CONF_SPEC in your local_settings.py
LEONARDO_CONF_SPEC = {
'feature_switchers': {},
}
then in your modules add custom switchers::
LEONARDO_FEATURE_SWITCHERS = {
'my_feature': lambda request, **kw: True,
'my_feature1': 'leonardo_feature_switcher.my_feature1'
}
and in your templates::
{% load feature_switcher %}
{% is_on "my_feature" %}
{% if my_feature %}
{% endif %}
Read More
=========
* https://github.com/django-leonardo/django-leonardo
Leonardo leonardo-feature-switcher
==========================
Simple feature toggle tool for Leonardo CMS
.. contents::
:local:
Installation
------------
.. code-block:: bash
pip install leonardo-feature-switcher
add *feature_switchers* to LEONARDO_CONF_SPEC in your local_settings.py
LEONARDO_CONF_SPEC = {
'feature_switchers': {},
}
then in your modules add custom switchers::
LEONARDO_FEATURE_SWITCHERS = {
'my_feature': lambda request, **kw: True,
'my_feature1': 'leonardo_feature_switcher.my_feature1'
}
and in your templates::
{% load feature_switcher %}
{% is_on "my_feature" %}
{% if my_feature %}
{% endif %}
Read More
=========
* https://github.com/django-leonardo/django-leonardo
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Close
Hashes for leonardo-feature-switcher-0.0.1.dev1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 03538087dbf35eceea578a09c4d097c4e34348305fd4853f9661ff63a0c31b9b |
|
MD5 | 08a7f8718ac1fe7c72dc0b1929ff76ac |
|
BLAKE2b-256 | 1a2940fde1c00d559107123e37a124fa3165cf2842c0b8a873e430652edca1ec |