django-config-models:Django的配置模型允许通过审核进行配置管理

时间:2021-04-19 17:18:38
【文件属性】:
文件名称:django-config-models:Django的配置模型允许通过审核进行配置管理
文件大小:80KB
文件格式:ZIP
更新时间:2021-04-19 17:18:38
Python 。 django-config-models 概述 此应用程序允许其他应用程序轻松定义可以挂接到管理站点中的配置模型,以允许通过审核进行配置管理。 安装 将config_models添加到您的INSTALLED_APPS列表。 用法 创建ConfigurationModel的子类,其中包含需要配置的每个值的字段: class MyConfiguration(ConfigurationModel): frobble_timeout = IntField(default=10) frazzle_target = TextField(defalut="debug") 这是一个普通的django模型,因此必须照常进行同步和迁移。 如果尚未创建ConfigurationModel将使用ConfigurationModel字段的默认值。 使用ConfigurationAdminM
【文件预览】:
django-config-models-master
----MANIFEST.in(212B)
----README.rst(3KB)
----.coveragerc(148B)
----docs()
--------testing.rst(667B)
--------conf.py(13KB)
--------getting_started.rst(404B)
--------make.bat(7KB)
--------changelog.rst(30B)
--------internationalization.rst(2KB)
--------readme.rst(27B)
--------Makefile(8KB)
--------index.rst(582B)
--------_static()
----openedx.yaml(309B)
----.github()
--------workflows()
----tests()
--------test_model_deserialization.py(8KB)
--------test_decorators.py(899B)
--------utils.py(4KB)
--------data()
--------conftest.py(364B)
--------test_config_models.py(17KB)
--------__init__.py(0B)
--------test_admin.py(3KB)
----tox.ini(1KB)
----setup.cfg(22B)
----pylintrc_tweaks(129B)
----requirements()
--------private.readme(673B)
--------dev.in(347B)
--------base.in(174B)
--------test.in(444B)
--------ci.txt(893B)
--------ci.in(309B)
--------quality.txt(3KB)
--------test.txt(1KB)
--------base.txt(666B)
--------pip-tools.txt(324B)
--------constraints.txt(767B)
--------pip.in(72B)
--------pip-tools.in(189B)
--------doc.txt(4KB)
--------quality.in(307B)
--------dev.txt(6KB)
--------pip.txt(308B)
--------doc.in(356B)
----AUTHORS(428B)
----mock_apps()
--------example()
----setup.py(3KB)
----manage.py(1KB)
----.gitignore(737B)
----Makefile(4KB)
----test_settings.py(911B)
----CHANGELOG.rst(3KB)
----config_models()
--------models.py(10KB)
--------conf()
--------apps.py(235B)
--------utils.py(3KB)
--------templates()
--------management()
--------decorators.py(918B)
--------__init__.py(199B)
--------views.py(3KB)
--------admin.py(8KB)
--------urls.py(209B)
--------templatetags.py(980B)
----LICENSE.txt(34KB)
----pylintrc(10KB)

网友评论