Skip to main content

Feature flags for Django projects

Project description

Django-Flags

Build Status Ethical open source

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

  • Python 3.6+
  • Django 2.2-4.0

Installation

  1. Install Django-Flags:
pip install django-flags
  1. Add flags as an installed app in your Django settings.py:
INSTALLED_APPS = (
    ...
    'flags',
    ...
)

Documentation

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.

Getting help

Please add issues to the issue tracker.

Getting involved

General instructions on how to contribute can be found in CONTRIBUTING.

Licensing

  1. TERMS
  2. LICENSE
  3. CFPB Source Code Policy

Credits and references

Django-Flags was forked from Wagtail-Flags, which was itself forked from cfgov-refresh.

Project details


Download files

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

Source Distribution

django-flags-5.0.12.tar.gz (27.6 kB view details)

Uploaded Source

Built Distribution

django_flags-5.0.12-py2.py3-none-any.whl (42.5 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file django-flags-5.0.12.tar.gz.

File metadata

  • Download URL: django-flags-5.0.12.tar.gz
  • Upload date:
  • Size: 27.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.7.13

File hashes

Hashes for django-flags-5.0.12.tar.gz
Algorithm Hash digest
SHA256 07f28e334da1c2fe54262160172610cdb8f13e2be6ec18964c23c375091442ca
MD5 a89d19f6c4bb91aaef18206030b30c12
BLAKE2b-256 23e7a6adf8c98e9e73640be82b00c99ec68c0b977ab3d0dc7506746866e57b3d

See more details on using hashes here.

Provenance

File details

Details for the file django_flags-5.0.12-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for django_flags-5.0.12-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 b186651de361926c917f9d7c9ecc84fac47c39f4ad6066c25bf6cd3cf28da50a
MD5 2276be3788377dfb85da812e1b755b8a
BLAKE2b-256 2888bbe6dc87674650127d8cc7be158295aaa1716105c3f789ffeef6892ecc3c

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page