python - django前后端分离,使用其他的模版引擎,要怎么进行配置
黄舟
黄舟 2017-04-18 10:30:07
0
3
518

其他的模版引擎:如template.js,vue.js等
在django中怎么进行配置,才可以使用其他的模版引擎?

黄舟
黄舟

人生最曼妙的风景,竟是内心的淡定与从容!

reply all(3)
PHPzhong

Django’s View returns json data.

Ty80

Since the front-end and back-end are separated, the back-end can just focus on returning API data. Template rendering and other things can be left to the front-end itself.

小葫芦

You can use openresty (nginx) to configure the front-end static files. Some pages can be rendered using template and lua code in nginx. This eliminates the need for python django render

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template