Skip to main content

Django数据字典管理应用。

Project description

django-app-metadata

Django数据字典管理应用。

安装

pip install django-app-metadata

使用

app/views.py

from django_app_metadata.models import Config

def get_config(request):
    key = reqeust.GET.get("key")
    value = Config.get(key, default=None, default_published=True, frontend_flag=True)
    return value

版本记录

v0.1.0

  • 版本首发。
  • 数据字典管理。
  • 数据字典获取支持缓存。

v0.1.1

  • 修改:使用django-environment-settings获取系统配置以增强应用的兼容性。
  • 修改:AccessToUnpublishedConfigIsForbidden添加错误信息,支持中英双语。
  • 修正:添加django-model-helper依赖关系。

v0.1.2

  • 修正:Config.Meta.permissions添加其它基础类的相关permissions

v0.1.3

  • 改进:配置项管理界面。
  • 改进:配置项导出文件中category使用title取代原来的id。

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_app_metadata-0.1.3.tar.gz (13.4 kB view details)

Uploaded Source

Built Distribution

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

django_app_metadata-0.1.3-py3-none-any.whl (15.8 kB view details)

Uploaded Python 3

File details

Details for the file django_app_metadata-0.1.3.tar.gz.

File metadata

  • Download URL: django_app_metadata-0.1.3.tar.gz
  • Upload date:
  • Size: 13.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.11.9

File hashes

Hashes for django_app_metadata-0.1.3.tar.gz
Algorithm Hash digest
SHA256 2c6aa5924fe2f8e23fc1428f61a6cc68f05ac3cbdd4ea53a27eb0d68612751c4
MD5 e16f443a9df1b675f184f37fa30d526e
BLAKE2b-256 8b3dd98b5d379a10815835d1e47d01166eb586b8e6fce3b585fe36e7a0bda9d0

See more details on using hashes here.

File details

Details for the file django_app_metadata-0.1.3-py3-none-any.whl.

File metadata

File hashes

Hashes for django_app_metadata-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 4287b335c2c01f2a9f5a2408603bbc899e9fce75cedd887042854c367ee7d02e
MD5 66a363fdacb03b417b57156e7a9c8daa
BLAKE2b-256 467d5fb606f2668b3b0ba805cb8a3583525de0b74a62c94a87ffa1c57413da68

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