Home  >  Q&A  >  body text

python - django前后端分离,使用其他的模版引擎,要怎么进行配置

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

黄舟黄舟2741 days ago492

reply all(3)I'll reply

  • PHPz

    PHPz2017-04-18 10:32:07

    Django’s View returns json data.

    reply
    0
  • PHP中文网

    PHP中文网2017-04-18 10:32:07

    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.

    reply
    0
  • 高洛峰

    高洛峰2017-04-18 10:32:07

    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

    reply
    0
  • Cancelreply