Feature flags allow you to toggle functionality in both Django code and the Django templates based on configurable conditions. Flags can be useful for staging feature deployments, for A/B testing, or for any time you need an on/off switch for blocks of code. The toggle can be by date, user, URL value, or a number of other conditions, editable in the admin or in definable in settings.
- Dependencies
- Installation
- Documentation
- Getting help
- Getting involved
- Licensing
- Credits and references
- Python 3.7+
- Django 2.2-4.0
- Install Django-Flags:
pip install django-flags
- Add
flags
as an installed app in your Djangosettings.py
:
INSTALLED_APPS = (
...
'flags',
...
)
https://cfpb.github.io/django-flags is the full documentation for Django-Flags, and includes how to get started, general usage, and an API reference.
Please add issues to the issue tracker.
General instructions on how to contribute can be found in CONTRIBUTING.
Django-Flags was forked from Wagtail-Flags, which was itself forked from cfgov-refresh.