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.11+ (including Django 2.x)
  • 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.2.0.tar.gz (23.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

django_flags-4.2.0-py2.py3-none-any.whl (34.2 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

  • Download URL: django-flags-4.2.0.tar.gz
  • Upload date:
  • Size: 23.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3

File hashes

Hashes for django-flags-4.2.0.tar.gz
Algorithm Hash digest
SHA256 00cc86379e33f283643dc70b1a9b0619c8d6a0e2b7516152254d98c9315a2772
MD5 6ded4d2eecbda432e65e59448eacedb3
BLAKE2b-256 6f1f0035738bd6ddab714418420726a1e3a3569084711987ffea619ff21b0f3c

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for django_flags-4.2.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 3e8a3b0e966e5063d723af7c755a42172208b31baae3c4ff366b79d1f3ca87de
MD5 3e82e517aa7325f580a3361f32eaa283
BLAKE2b-256 60a88923a979e811c8ad02a8245c518b85016ee48e18eda0a3c140c83de8963e

See more details on using hashes here.

Supported by

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