inertia-django:django惯性连接器

时间:2021-05-14 13:00:09
【文件属性】:
文件名称:inertia-django:django惯性连接器
文件大小:14KB
文件格式:ZIP
更新时间:2021-05-14 13:00:09
hacktoberfest hacktoberfest2020 Python 惯性-django积子 TL; DR: inertia-django connetor使您能够用Vue / React / Svelte组件替换“经典”模板。 SPA用户体验MPA风格的开发流程。 无需客户端路由,只需使用urls.py 。 无需API端点,只需将数据直接传递到客户端组件的属性即可。 基于惯性-laravel。 此仓库中提供的演示项目: : 有关惯性的更多信息: : 用法 render_inertia函数 使用惯性render_inertia渲染Vue组件的最简单方法是使用render_inertia函数。 注意:您的项目中必须具有Index.vue组件。 from inertia import render_inertia def index ( request ): # for function views just use the rend
【文件预览】:
inertia-django-master
----MANIFEST.in(54B)
----.github()
--------workflows()
----test.py(5KB)
----testutils()
--------base.html(30B)
----inertia()
--------apps.py(94B)
--------middleware.py(1KB)
--------share.py(1KB)
--------__init__.py(0B)
--------models.py(60B)
--------views.py(4KB)
--------version.py(259B)
----requirements.txt(390B)
----LICENSE(1KB)
----requirements.in(29B)
----setup.cfg(92B)
----setup.py(4KB)
----README.md(4KB)
----Bakefile(146B)
----.gitignore(2KB)
----.coveragerc(317B)

网友评论