This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

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, *args, **kw: True,
'my_feature1': 'leonardo_feature_switcher.my_feature1'
}

and in your templates::

{% load feature_switcher %}

{% is_on "my_feature" %}

{% if my_feature %}

{% endif %}

{% is_on_as "my_feature" as my_feature_result %}

{% if my_feature_result %}
{% endif %}

Read More
=========

* https://github.com/django-leonardo/django-leonardo
Release History

Release History

This version
History Node

0.0.2

History Node

0.0.1.dev1

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
leonardo-feature-switcher-0.0.2.tar.gz (12.7 kB) Copy SHA256 Checksum SHA256 Source Sep 15, 2016

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting