【发布时间】:2019-11-14 03:56:01
【问题描述】:
我有两页。
1) create_form.html ,使用 create_form 视图呈现 2) formatter.html ,用格式化程序视图呈现
我在 create_form.html 中使用 iframe 添加了格式化程序视图。
<iframe src = "/formatter" width = "768" height = "500" frameBorder="0"> </iframe>
我在渲染 create_form.html 时将字典传递给 create_form。我可以在 create_form 视图中找到这本字典。但我还需要将此字典传递给 create_form.html 中的 iframe 中的 formatter.html
【问题讨论】:
标签: python html django django-templates django-views