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

Uploaded Source

Built Distribution

django_flags-3.0.2-py2.py3-none-any.whl (20.8 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

  • Download URL: django-flags-3.0.2.tar.gz
  • Upload date:
  • Size: 17.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.23.0 CPython/3.6.4

File hashes

Hashes for django-flags-3.0.2.tar.gz
Algorithm Hash digest
SHA256 9e07af102edf19a7a8ae72f886891ec971d46312b587a0d33a1d85b69f5fdc3b
MD5 7d498eb6336527e4192bbe5b6024ca90
BLAKE2b-256 423fa0a09fd97e824d6fffc69eb3144f036fa31cf0670e693e9cb3de0240b63d

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: django_flags-3.0.2-py2.py3-none-any.whl
  • Upload date:
  • Size: 20.8 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.23.0 CPython/3.6.4

File hashes

Hashes for django_flags-3.0.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 2ddb5b53b3eb72597c5442a865714b0e3f5f51b3c84f2eda89e467b186cba9e1
MD5 c8106bb5b7d416f450a497861a03522e
BLAKE2b-256 af1815f195664deac2cc2f6b941668132e93b3b25bd744e73ef34d54c630ca4f

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