Skip to main content

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.

Metadata

Release files for django-flags 5.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-flags 5.3.0
File Size Uploaded Provenance Actions
django_flags-5.3.0.tar.gz 248.2 kB With provenance Details for django_flags-5.3.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for django-flags 5.3.0
File Interpreter ABI Platform Actions
django_flags-5.3.0-py3-none-any.whl Python 3 none any Details for django_flags-5.3.0-py3-none-any.whl

Total release size: 291.2 kB

Release files / django_flags-5.3.0.tar.gz

Download URL django_flags-5.3.0.tar.gz
Size 248.2 kB
Tags Source
SHA-256 checksum
How to use checksums
4316ff362580b7f529ae9e82069c661d53d65238c4aa5c6a0183b3d3d4200847
BLAKE2b-256 checksum
How to use checksums
ef911c007330f70ffb210e3e95cafa8a2c4f6292a480205ca104f14203e4f40c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.13

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 19, 2026.

Transparency log

Release files / django_flags-5.3.0-py3-none-any.whl

Download URL django_flags-5.3.0-py3-none-any.whl
Size 43.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
09f48b5731d835c2ec0e44a339e59714545d6694f2698bc3e31aee2aaf7e4be9
BLAKE2b-256 checksum
How to use checksums
da86aab7fc05f0faea16e66be05445196513c8ac15f2a3c662ce032869f675b6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.13

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 19, 2026.

Transparency log

Security for django-flags 5.3.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for django_flags-5.3.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 19, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

5.3.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page