django-mathfield:用于编写和显示 LaTeX 的 Django 模型字段

时间:2021-07-12 05:47:46
【文件属性】:
文件名称:django-mathfield:用于编写和显示 LaTeX 的 Django 模型字段
文件大小:630KB
文件格式:ZIP
更新时间:2021-07-12 05:47:46
JavaScript django-mathfield MathField 是 Django 的模型字段,它允许您输入 LaTeX 并将编译后的 HTML 存储在您的数据库中。 它带有一个供 Django 管理员使用的表单,可提供渲染的 LaTeX 的实时预览。 安装和设置 您的服务器需要有和 。 安装它: $ pip install django-mathfield 将'mathfield'添加到 Django 项目settings.py INSTALLED_APPS中。 将MathField添加到您的模型之一,如下所示: from django . db import models import mathfield class Lesson ( models . Model ): lesson_plan = mathfield . MathField () 在admin.py注册模型时
【文件预览】:
django-mathfield-master
----MANIFEST.in(128B)
----README.rst(5KB)
----manage.py(248B)
----CHANGELOG.rst(167B)
----Gruntfile.js(885B)
----mathfield()
--------__init__.py(264B)
--------models.py(3KB)
--------generate_html.js(601B)
--------widgets.py(2KB)
--------api.py(4KB)
--------static()
----LICENSE(1KB)
----setup.py(901B)
----Makefile(181B)
----tests()
--------settings.py(1KB)
--------urls.py(403B)
--------test_api.py(3KB)
--------admin.py(391B)
--------__init__.py(26B)
--------models.py(179B)
--------test_models.py(2KB)
--------templates()
----.gitignore(90B)
----package.json(136B)

网友评论