控制器传入数据
视图渲染
# for循环
{% for item in overviewof %}
{{ item.epg }}
{% endfor %}
# 跳转链接
{% url 'look' %}
path('look/', views.look, name='look'),
iframe跨越问题
X_FRAME_OPTIONS = 'SAMEORIGIN'
# 视图控制器引用
from django.views.decorators.clickjacking import xframe_options_exempt
@xframe_options_exempt
标签:xframe,look,views,渲染,视图,iframe
From: https://www.cnblogs.com/lijiaxiang/p/18091284