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-3.2

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

Uploaded Source

Built Distribution

django_flags-5.0.5-py2.py3-none-any.whl (41.8 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

  • Download URL: django-flags-5.0.5.tar.gz
  • Upload date:
  • Size: 27.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.7.10

File hashes

Hashes for django-flags-5.0.5.tar.gz
Algorithm Hash digest
SHA256 44a85ac0e72f05ca56f90545f1d7da1978710ae8301ef6ba768d2bd3cc685900
MD5 2bad423c3c190df3fffc5e8b90011561
BLAKE2b-256 6fe63e05433ffaf3fa83be4b3e0005c2ae30ba1a8c57b0c486f17d741f6e5268

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: django_flags-5.0.5-py2.py3-none-any.whl
  • Upload date:
  • Size: 41.8 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.7.10

File hashes

Hashes for django_flags-5.0.5-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 02c5e77a8b593cd66523c34af5d235a56ef7a644f290604015dbc2c8153be9e1
MD5 1ceab656a1cd323ede0b53dcb513a1b5
BLAKE2b-256 1decdabff2f533017c401c53fd1126f4c4643c089cab7c3bb7f367386870a10c

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