Skip to main content

Feature flags for Django projects

Project description

Django-Flags

Build Status Coverage 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.6.tar.gz (27.2 kB view details)

Uploaded Source

Built Distribution

django_flags-5.0.6-py2.py3-none-any.whl (42.0 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

  • Download URL: django-flags-5.0.6.tar.gz
  • Upload date:
  • Size: 27.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.12

File hashes

Hashes for django-flags-5.0.6.tar.gz
Algorithm Hash digest
SHA256 e007818970d21d6fa6d88cf7563cd1dd39e4be1f4550da22a4b5fedeb02b9042
MD5 d6d8746655232b04b2ce2502a2ee1674
BLAKE2b-256 c10a9bd2bb9f23803541ca2210caf525b4e0b301317df7f08027e6fb8f2aaf0e

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: django_flags-5.0.6-py2.py3-none-any.whl
  • Upload date:
  • Size: 42.0 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.12

File hashes

Hashes for django_flags-5.0.6-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 295b79051fc0408baafbea19ae13cd4b5d10d9da88c302499a63ed8bca4fc227
MD5 7c65185c67b7e2e5c57a68f624201212
BLAKE2b-256 0025f86395288d7c1d416a4f65fe2b646e8cddae06045f5c735c8867877217f6

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