Skip to main content

Feature flags for Django projects

Project description

Django-Flags

Build 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.10+
  • Django 4.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.2.0.tar.gz (246.8 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-5.2.0-py3-none-any.whl (42.7 kB view details)

Uploaded Python 3

File details

Details for the file django_flags-5.2.0.tar.gz.

File metadata

  • Download URL: django_flags-5.2.0.tar.gz
  • Upload date:
  • Size: 246.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for django_flags-5.2.0.tar.gz
Algorithm Hash digest
SHA256 a3aee5e0d11e24e35f5ae4a423d52cad721f639181c1b1251e0148d8530a3f81
MD5 18b45f572054900795295e42483c5389
BLAKE2b-256 72e7da3a2e006a670c4c275fa0abd15ab4715576bb933d9e97ae4f9477cd8a88

See more details on using hashes here.

Provenance

The following attestation bundles were made for django_flags-5.2.0.tar.gz:

Publisher: release.yml on cfpb/django-flags

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file django_flags-5.2.0-py3-none-any.whl.

File metadata

  • Download URL: django_flags-5.2.0-py3-none-any.whl
  • Upload date:
  • Size: 42.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for django_flags-5.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 aa22543410f68a4082c576f3be469ea67a51c933f8a43eb8b10f6236f158e17e
MD5 c981cfe10ac6e716f48038489f379e85
BLAKE2b-256 15e694dcb6cea2ede9adcd406f48ff04ce80bdb5a919306f1aded8d84e27f807

See more details on using hashes here.

Provenance

The following attestation bundles were made for django_flags-5.2.0-py3-none-any.whl:

Publisher: release.yml on cfpb/django-flags

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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