亚洲国产日韩欧美一区二区三区,精品亚洲国产成人av在线,国产99视频精品免视看7,99国产精品久久久久久久成人热,欧美日韩亚洲国产综合乱

python - django multiple templates nested extends
迷茫
迷茫 2017-06-30 09:52:46
0
1
875

There is now a page.
base.html
data.html

index.html

Now index.html extends base and blocks base information.
Here comes the problem. How to extend data.html? Django does not support the extends 2 syntax by default.

# index.html
{% extends "base.html" %}

{% block source %}

    {% extends "data.html" %}
    # 如何再繼承一個(gè)模板然后渲染呢?
    # 如果這里 include data.html , view 傳進(jìn)來(lái)的context 不會(huì)生效
    
{% endblock %}

If you are new to Django, is it normal to need to render twice?

迷茫
迷茫

業(yè)精于勤,荒于嬉;行成于思,毀于隨。

reply all(1)
迷茫

include with

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