Skip to main content

Feature flags for Django projects

Project description

Django-Flags

Build Status Coverage Status

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

  • Django 1.8+ (including Django 2.0)
  • Python 2.7+, 3.6+

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-4.1.2.tar.gz (19.3 kB view details)

Uploaded Source

Built Distribution

django_flags-4.1.2-py2.py3-none-any.whl (28.3 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

  • Download URL: django-flags-4.1.2.tar.gz
  • Upload date:
  • Size: 19.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3

File hashes

Hashes for django-flags-4.1.2.tar.gz
Algorithm Hash digest
SHA256 b288b2378100b316ca1c1d7d3e844fd49d9161d8f1d871386999b6d4e0120100
MD5 0407e0a5c113c27f5a9ff6ac8f6dbf9d
BLAKE2b-256 8227bd55382fe3eca8209dd30a2c12d19778502f1c2381bdb7f1877d84422857

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: django_flags-4.1.2-py2.py3-none-any.whl
  • Upload date:
  • Size: 28.3 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3

File hashes

Hashes for django_flags-4.1.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 78e7a19426f7ddffaaed4bc4a0cd606ad8336986d7cc74f011c089249cfc8047
MD5 d30c8cc5dfb82012ac99439b5327db93
BLAKE2b-256 7c9a5d1741b9766788b965139b6af6de3efb2b723f72ee638c3ad5ccd8422569

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