【发布时间】:2019-02-15 16:40:36
【问题描述】:
虽然我有 django 中的应用程序,但我想设置一个静态页面。使用 nginx。但我得到一个错误:
[alert] 100983#0: *439266 "/path_to_page_on_server/press_page.htmlindex.html" is not a directory,
这是我的网址:
url(r'^press/', TemplateView.as_view(template_name='press_page.html'), name='press')
这是我在 nginx 中的配置包括:
location /press/ {
alias /path_to_page_on_server/press_page.html;
}
我想在/press/下有页面press_page.html。
【问题讨论】:
标签: python django nginx static-pages