django-extra-checks:Django Checks Framework的有用检查的集合

时间:2021-05-16 11:52:57
【文件属性】:
文件名称:django-extra-checks:Django Checks Framework的有用检查的集合
文件大小:40KB
文件格式:ZIP
更新时间:2021-05-16 11:52:57
Python Django额外检查 Django Checks框架的有用检查的集合 支票 楷模 extra-checks-config -settings.EXTRA_CHECKS是django-extra-checks的有效配置(始终启用)。 model-attribute-项目中的每个Model必须具有指定的attrs设置的所有属性。 model-meta-attribute-项目中的每个Model.Meta必须具有指定的attrs设置的所有属性。 不唯一在一起-请将UniqueConstraint与constraints选项一起使用。 no-index-together-改为使用indexs选项。 model-admin-每个模型都必须在admin中注册。 field-file-upload-to -FileField / ImageField必须具有非空的upload_to参数。
【文件预览】:
django-extra-checks-master
----MANIFEST.in(197B)
----mypy.ini(610B)
----.github()
--------workflows()
----src()
--------extra_checks()
----tox.ini(1KB)
----pytest.ini(131B)
----LICENSE(1KB)
----setup.cfg(2KB)
----setup.py(38B)
----README.md(5KB)
----.pre-commit-config.yaml(856B)
----conftest.py(2KB)
----shell.nix(1KB)
----tests()
--------settings.py(2KB)
--------test_model_field_checks.py(7KB)
--------test_config.py(5KB)
--------urls.py(96B)
--------test_drf_serializer_checks.py(3KB)
--------test_self_checks.py(2KB)
--------__init__.py(0B)
--------example()
--------views.py(99B)
--------test_ignore.py(4KB)
--------test_model_checks.py(3KB)
----.gitignore(90B)
----CHANGELOG.md(1KB)

网友评论