Schema-driven, database-backed runtime configuration app for Django
Project description
django-sysconfig
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.
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.
- Quick Start — up and running in 5 minutes
- Installation — full setup guide
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.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file django_sysconfig-1.0.1.tar.gz.
File metadata
- Download URL: django_sysconfig-1.0.1.tar.gz
- Upload date:
- Size: 47.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1397cf8264540ae88cc07f16331b31eacea741d202db84313b70d7ed8ae4c1fd
|
|
| MD5 |
c4beea8b08755d8faf625a83cbe0f67e
|
|
| BLAKE2b-256 |
04193efc2ab58b91575213f6531910210dc09c375d4447127b25b999aa235ce4
|
Provenance
The following attestation bundles were made for django_sysconfig-1.0.1.tar.gz:
Publisher:
release.yml on krishnamodepalli/django-sysconfig
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
django_sysconfig-1.0.1.tar.gz -
Subject digest:
1397cf8264540ae88cc07f16331b31eacea741d202db84313b70d7ed8ae4c1fd - Sigstore transparency entry: 1295210642
- Sigstore integration time:
-
Permalink:
krishnamodepalli/django-sysconfig@8a824ca427dc519702b9a070d5bd9a38b3773f77 -
Branch / Tag:
refs/heads/master - Owner: https://github.com/krishnamodepalli
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@8a824ca427dc519702b9a070d5bd9a38b3773f77 -
Trigger Event:
push
-
Statement type:
File details
Details for the file django_sysconfig-1.0.1-py3-none-any.whl.
File metadata
- Download URL: django_sysconfig-1.0.1-py3-none-any.whl
- Upload date:
- Size: 41.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3441197c16c78f05e1c807906ebf8bbfee4d70538dede2866805e1f75eb5f216
|
|
| MD5 |
4237b2b3468436fb20c941b57ad859d7
|
|
| BLAKE2b-256 |
c65b754c3a9cef596065def47c4e98150ba7adbffbfeef61ec7807338f55bb07
|
Provenance
The following attestation bundles were made for django_sysconfig-1.0.1-py3-none-any.whl:
Publisher:
release.yml on krishnamodepalli/django-sysconfig
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
django_sysconfig-1.0.1-py3-none-any.whl -
Subject digest:
3441197c16c78f05e1c807906ebf8bbfee4d70538dede2866805e1f75eb5f216 - Sigstore transparency entry: 1295210784
- Sigstore integration time:
-
Permalink:
krishnamodepalli/django-sysconfig@8a824ca427dc519702b9a070d5bd9a38b3773f77 -
Branch / Tag:
refs/heads/master - Owner: https://github.com/krishnamodepalli
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@8a824ca427dc519702b9a070d5bd9a38b3773f77 -
Trigger Event:
push
-
Statement type: