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依赖关系。
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.1.tar.gz
(12.7 kB
view details)
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.1.tar.gz.
File metadata
- Download URL: django-app-metadata-0.1.1.tar.gz
- Upload date:
- Size: 12.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2f885c8d2c4a80eef39e77cbdeb727cdeb28b01a10bfe7b471db4dc8beb1080a
|
|
| MD5 |
7c1c968bf3c05a2226a1435405c9e00d
|
|
| BLAKE2b-256 |
60182f953cc9d3c3bca19002f2b2f5c0208c865fe51629b15d6b0335eb8f084e
|
File details
Details for the file django_app_metadata-0.1.1-py3-none-any.whl.
File metadata
- Download URL: django_app_metadata-0.1.1-py3-none-any.whl
- Upload date:
- Size: 15.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
29e795904aeb306ad0b05a836802ccaa3906758e901f46898e73273f74c952ed
|
|
| MD5 |
c3dbabe8a100d5e6fd0615b79def2ef7
|
|
| BLAKE2b-256 |
2c8720a3bb753344535099c2c3d452cfca022db403ff3dc108597fb4850f6622
|