【发布时间】:2019-10-08 23:29:58
【问题描述】:
我有使用 python manage.py runserver 运行我的新网站的开发环境 我有使用 Apache2 和 mod wsgi 运行这个网站的生产环境 我在我的views.py中发送了一些在我的开发环境中成功呈现的变量,但是在prod env上的相同代码对模板没有任何渲染
【问题讨论】:
标签: python django templates view rendering
我有使用 python manage.py runserver 运行我的新网站的开发环境 我有使用 Apache2 和 mod wsgi 运行这个网站的生产环境 我在我的views.py中发送了一些在我的开发环境中成功呈现的变量,但是在prod env上的相同代码对模板没有任何渲染
【问题讨论】:
标签: python django templates view rendering
通过设置解决了这个问题: 服务器名称 mysite.com 在我的 apache 配置中
【讨论】: