Skip to main content

django-settings-enumerate

Django management command that dumps all settings in a flattened dot-notation format with automatic sensitive-value hashing.

Installation

pip install django-settings-enumerate

Add to INSTALLED_APPS:

INSTALLED_APPS = [
    ...,
    "django_settings_enumerate",
]

Usage

# Dump all settings (flattened text)
./manage.py enumerate_settings

# JSON output (nested, unchanged structure)
./manage.py enumerate_settings --format json

# Filter by prefix
./manage.py enumerate_settings --filter DATABASE

# Show sensitive values instead of sha256 hashes
./manage.py enumerate_settings --show-sensitive

# Diff against a previous dump
./manage.py enumerate_settings > baseline.txt
./manage.py enumerate_settings --diff baseline.txt

Output format

Text output uses flattened dot-notation with JSON-encoded leaf values:

ALLOWED_HOSTS[0] = "*"
DATABASES.default.ENGINE = "django.db.backends.postgresql"
DATABASES.default.HOST = "localhost"
DEBUG = true
SECRET_KEY = "d4e5f6..."

Sensitive keys matching API|TOKEN|KEY|SECRET|PASS|SIGNATURE are replaced with their sha256 hash unless --show-sensitive is passed.

Requirements

  • Python >= 3.9
  • Django >= 4.2

Metadata

Release files for django-settings-enumerate 0.1.1

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-settings-enumerate 0.1.1
File Size Uploaded
django_settings_enumerate-0.1.1.tar.gz 174.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for django-settings-enumerate 0.1.1
File Interpreter ABI Platform
django_settings_enumerate-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 180.6 kB

Release files / django_settings_enumerate-0.1.1.tar.gz

Download URL django_settings_enumerate-0.1.1.tar.gz
Size 174.6 kB
Tags Source
SHA-256 checksum
How to use checksums
0ae062a2998f7f19ad3c64a018bd006c71badf1a126deba9f17a14f4f078a3a9
BLAKE2b-256 checksum
How to use checksums
f89f17fd422d9bbdd268d242d4288a9b585100da05d8bf330a034f94e8dfcf7b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.8.18

Release files / django_settings_enumerate-0.1.1-py3-none-any.whl

Download URL django_settings_enumerate-0.1.1-py3-none-any.whl
Size 6.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
71bc6635b2e88725b0fc25f86ccdefea3b044751f927649a1df664aa88ad6935
BLAKE2b-256 checksum
How to use checksums
1495a1525a18da372d6718983047791ba1141b83062223b270dd6f999094fae2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.8.18

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.0

2 release files

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