【文件属性】:
文件名称:django-editorjs-field
文件大小:102KB
文件格式:ZIP
更新时间:2021-05-16 05:15:53
Python
django-editorjs-field
该模块将小部件集成到model / form字段中。
警告
这是一个早期的原型,正在进行中
安装
使用Pip安装: pip install django-editorjs-field
Django设定
settings.py
INSTALLED_APPS = [
...
' editorjs_field ',
...
]
在Django管理员中使用
models.py
from django . db import models
from editorjs_field . fields import EditorJSField
class Article ( models . Model ):
title = models . CharField ( max_length = 100 )
cont
【文件预览】:
django-editorjs-field-master
----.gitignore(70B)
----README.md(2KB)
----Pipfile.lock(11KB)
----LICENSE(11KB)
----Pipfile(217B)
----editorjs_field()
--------static()
--------fields.py(665B)
--------__init__.py(0B)
--------widgets.py(687B)
--------templates()
----example()
--------manage.py(627B)
--------example()
--------sample()
----MANIFEST.in(101B)
----setup.py(864B)