Skip to main content

Typed Django runtime configurationv1.0.1

Typed runtime config for Django

Declare keys in code, store values in the database, and read them only through get_value(). The project owns the keys; this package is the mechanism.

pip install django-gc

From install to a working snapshot

01

Install the package

Add django_gc, then declare categories and keys in settings.

02

Migrate

post_migrate creates missing rows and never overwrites live values.

03

Read through the service

Call get_value(). A cache miss rebuilds the full typed snapshot under a lock.

Why Django-GC

Code-declared keys

Categories and definitions live in Django settings and are synchronized after migrate.

Full cache snapshot

get_value() never falls back to a single-row ORM read. One parse failure aborts publish.

Stock Django Admin

Edit values with standard ModelAdmin and Django LogEntry history. No Tabler dependency.

Strongly typed

The package ships py.typed so editors and type checkers can follow the public contracts.