django-prettyjson:在Django表单,管理员或模板中启用漂亮的JSON查看器

时间:2021-05-14 12:49:19
【文件属性】:
文件名称:django-prettyjson:在Django表单,管理员或模板中启用漂亮的JSON查看器
文件大小:22KB
文件格式:ZIP
更新时间:2021-05-14 12:49:19
Python django-prettyjson 在Django表单,管理员或模板中启用漂亮的JSON查看器。 查看器改编自 。 它几乎与任何东西兼容:存储在字符串中的JSON,一个jsonfield(使用django.contrib.postgres或 )或任何可以序列化为JSON的python对象(使用 )。 演示版 见 安装 在命令行中: pip install django-prettyjson 配置 在settings.py 'prettyjson'添加到INSTALLED_APPS中: INSTALLED_APPS = ( ..., 'prettyjson' , ) 用法 在模型的表单或管理员中,为特定字段启用漂亮的JSON查看器: from prettyjson import PrettyJSONWidget class JsonForm ( forms . ModelFor
【文件预览】:
django-prettyjson-master
----.gitignore(419B)
----setup.cfg(130B)
----README.md(4KB)
----Pipfile.lock(9KB)
----tests()
--------test_models.py(355B)
--------test_prettyjson.py(1KB)
--------__init__.py(0B)
----CONTRIBUTING.rst(3KB)
----LICENSE(1KB)
----runtests.py(1KB)
----HISTORY.rst(931B)
----Pipfile(303B)
----prettyjson()
--------models.py(24B)
--------static()
--------templatetags()
--------__init__.py(61B)
--------widgets.py(1KB)
--------templates()
----requirements-test.txt(86B)
----requirements.txt(44B)
----MANIFEST.in(177B)
----setup.py(2KB)
----.travis.yml(672B)
----.editorconfig(331B)
----tox.ini(182B)
----AUTHORS.rst(156B)
----Makefile(2KB)
----.python-version(25B)
----requirements_dev.txt(33B)

网友评论