Skip to main content

Django Lokconfig

Reusable runtime configuration for Loknus Labs Django applications.

Configuration that belongs to the deployment (secrets, database URLs, broker URLs) stays in environment variables. Configuration that operators and administrators should change without rebuilding the image is stored in a YAML file, validated, migrated, and exposed through a setup and administration API.

pip install django-lokconfig
INSTALLED_APPS = ["lokconfig", ...]
LOKCONFIG_DEFINITION = "myapp.runtime_config.DEFINITION"
# urls.py
path("api/", include("lokconfig.urls"))

See docs/README.md for architecture, API, migrations, the admin setup wizard, and deployment.

The example project is in example/. example/docker-compose.yml mounts a persistent volume at /data. When no YAML file exists yet, LOKCONFIG_ environment variables that match configuration properties seed the initial values. First-run setup is /admin/setup/. The rest of the admin redirects there until setup is complete. After that, staff can reopen /admin/setup/ and save a new configuration.

Local development

pip install -e ".[dev]"
pytest
python manage.py check --deploy

Metadata

Release files for django-lokconfig 1.1.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-lokconfig 1.1.0
File Size Uploaded Provenance Actions
django_lokconfig-1.1.0.tar.gz 50.7 kB Without provenance Details for django_lokconfig-1.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for django-lokconfig 1.1.0
File Interpreter ABI Platform Actions
django_lokconfig-1.1.0-py3-none-any.whl Python 3 none any Details for django_lokconfig-1.1.0-py3-none-any.whl

Total release size: 111.8 kB

Release files / django_lokconfig-1.1.0.tar.gz

Download URL django_lokconfig-1.1.0.tar.gz
Size 50.7 kB
Tags Source
SHA-256 checksum
How to use checksums
1b85d2d05acfa05fc541b4d9fae691e54de40cfe3f3ef3e651e5358960719fc8
BLAKE2b-256 checksum
How to use checksums
b69dacc350659b6b7ddbf2f2f3b4961c61d3a7d0f75246c61ac2ac0a659faa6a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.18

Release files / django_lokconfig-1.1.0-py3-none-any.whl

Download URL django_lokconfig-1.1.0-py3-none-any.whl
Size 61.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
925f114fb438ffc1bfdcabe4bd2aa41cce10ff6b6908c083cdf96e03a4bedbdd
BLAKE2b-256 checksum
How to use checksums
585f371be01e6eae877e14c3543b551c26d266feffbac4c2d5f5cb50bdbe7def
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.18

Security for django-lokconfig 1.1.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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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

1.1.0 This release

2 release files No 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