Skip to main content

Simple config table with admin management

Project description

Django Log Shortcut

Install the package

pip install tms_django_config

Add the application in the INSTALLE_APPS:

INSTALLED_APPS = [
    ...
    'django.contrib.admin',
    'django.contrib.contenttypes',
    'tms_django_config',
    ...
]

Apply migrations

python manage.py migrate

Then use the shortcut

from tms_django_config.models import Config, ConfigType

my_config, _ = Config.objects.get_or_create(key="my-config-key", defaults=dict(type=ConfigType.TEXT, value="My default value"))

config_value = my_config.to_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

tms_django_config-1.0.1.tar.gz (2.8 kB view details)

Uploaded Source

Built Distribution

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

tms_django_config-1.0.1-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

Details for the file tms_django_config-1.0.1.tar.gz.

File metadata

  • Download URL: tms_django_config-1.0.1.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.28 {"installer":{"name":"uv","version":"0.9.28","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for tms_django_config-1.0.1.tar.gz
Algorithm Hash digest
SHA256 417b70fc1b83c981510bb0856da399fa60c60001683d34220e7933a12c411e68
MD5 8dcc75d43ec0fb57070b849d186836c0
BLAKE2b-256 124ba1f710ab92f4fd54e504542fa3f667fdd2458363e0173b4e4591e7aaf80c

See more details on using hashes here.

File details

Details for the file tms_django_config-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: tms_django_config-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 3.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.28 {"installer":{"name":"uv","version":"0.9.28","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for tms_django_config-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3687a45ad63d5bf4ec069418ee08cc591a796d4a9640e7cb366feb2859656b13
MD5 332dbeef9e39ec115d393538a694c482
BLAKE2b-256 e30c6177e7fe67fb0ac99bc51c77b130521947ce8942a86265288f1f0027d948

See more details on using hashes here.

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