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。
v0.1.4
- 添加:文件类型配置项的支持。
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file django_app_metadata-0.1.4-py3-none-any.whl.
File metadata
- Download URL: django_app_metadata-0.1.4-py3-none-any.whl
- Upload date:
- Size: 16.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
268d18ff2f7882265d7cffd0ccbdae58b1aae66f8fa0fa7881e3ee076764fde5
|
|
| MD5 |
76a0e403d37c10a246660aee2f9a26ad
|
|
| BLAKE2b-256 |
a41b35118b8c10b22c26b222b6554fece144c58cd0d40029b67463b4ab94719f
|