Skip to main content

Django Variable

Project description

Django Variable

django_variable is a library to define dynamic global settings that can be set within a regular django form and edited within django's admin panel.

How it works

Set the config values using admin (admin/variable_config/configuration/) Those values are persisted in the database (one per row) and stored in an in-memory cache for later access.

Compatibility

  • Python +3.8
  • Django >= 5

Documentation

Read The Docs

License

MIT

Usage

from django_variable.utils import get_config

get_config('KEY_CONFIG', 'DEFAULT_VALUE')

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

django_variable-0.1.2.tar.gz (4.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

django_variable-0.1.2-py3-none-any.whl (7.4 kB view details)

Uploaded Python 3

File details

Details for the file django_variable-0.1.2.tar.gz.

File metadata

  • Download URL: django_variable-0.1.2.tar.gz
  • Upload date:
  • Size: 4.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for django_variable-0.1.2.tar.gz
Algorithm Hash digest
SHA256 3e4a3e977752b26fa638d15c36f796abb9507190512e15b6778418fd8c8569e1
MD5 242e94f5f340f439a998d755d01be866
BLAKE2b-256 04714cc921923c29aa85b3b105d1d3e97730cb5a4d0cdcee3b5e8ebd24fc305b

See more details on using hashes here.

Provenance

The following attestation bundles were made for django_variable-0.1.2.tar.gz:

Publisher: publish.yml on jeissonp/django-variable

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file django_variable-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for django_variable-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e668e8bb50cc23c47425d610a716d785fc8602efba54344550605adc9b41142e
MD5 fa3e39cbef5d09ea0963b91c45b40051
BLAKE2b-256 843226adda86a4686a4348c2ad12e3b33633b43a1f76974ce60f3fbb31671046

See more details on using hashes here.

Provenance

The following attestation bundles were made for django_variable-0.1.2-py3-none-any.whl:

Publisher: publish.yml on jeissonp/django-variable

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page