Skip to main content

django-sysconfig

PyPI version Python versions CI License

Schema-driven, database-backed runtime configuration for Django.

Define typed config fields in code. Store values in the database. Edit everything live through a built-in admin UI — without touching settings.py.

django-sysconfig demo


Install

pip install django-sysconfig
# settings.py
INSTALLED_APPS = [
    "django_sysconfig",   # add at the top
    ...
]
python manage.py migrate

Quick example

# myapp/sysconfig.py
from django_sysconfig.registry import register_config, Section, Field
from django_sysconfig.frontend_models import BooleanFrontendModel, IntegerFrontendModel
from django_sysconfig.validators import RangeValidator

@register_config("myapp")
class MyAppConfig:
    class General(Section):
        label = "General"

        maintenance_mode = Field(BooleanFrontendModel, label="Maintenance Mode", default=False)
        max_items = Field(IntegerFrontendModel, label="Max Items", default=100,
                          validators=[RangeValidator(min_value=1, max_value=10_000)])
# anywhere in your project
from django_sysconfig.accessor import config

if config.get("myapp.general.maintenance_mode"):
    return HttpResponse("Down for maintenance.", status=503)

Staff can toggle maintenance_mode at /admin/config/ — no code change, no redeploy.


Documentation

Full guides, API reference, and examples are in the docs.


Contributing

See CONTRIBUTING.md. Issues and pull requests are welcome.


Security

Please do not open a public issue for security vulnerabilities. Report them privately via GitHub Security Advisories.

Metadata

Release files for django-sysconfig 1.2.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-sysconfig 1.2.0
File Size Uploaded Provenance Actions
django_sysconfig-1.2.0.tar.gz 51.7 kB With provenance Details for django_sysconfig-1.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for django-sysconfig 1.2.0
File Interpreter ABI Platform Actions
django_sysconfig-1.2.0-py3-none-any.whl Python 3 none any Details for django_sysconfig-1.2.0-py3-none-any.whl

Total release size: 101.3 kB

Release files / django_sysconfig-1.2.0.tar.gz

Download URL django_sysconfig-1.2.0.tar.gz
Size 51.7 kB
Tags Source
SHA-256 checksum
How to use checksums
8b389ec8d5453f1ac138936cd27b4df2f01ea121b6bf5b80d28a2064ffaad868
BLAKE2b-256 checksum
How to use checksums
e698b1f063cc1dfee41c972de3278a04b62bac81ee927f3b0d9c1d4b5058ae61
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Aug 15, 2026.

Transparency log

Release files / django_sysconfig-1.2.0-py3-none-any.whl

Download URL django_sysconfig-1.2.0-py3-none-any.whl
Size 49.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
60192d377c6a4c7849c2d9e645f069e18bb2082d2afe702196816628846bbc2f
BLAKE2b-256 checksum
How to use checksums
7edf41bdb1bbdecff258621ebdd37d26e1cceec86a9516ad9a03f92168b9ade1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Aug 15, 2026.

Transparency log

Security for django-sysconfig 1.2.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

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for django_sysconfig-1.2.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 Aug 15, 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.

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