【发布时间】:2012-10-02 02:14:22
【问题描述】:
这里是 Heroku/Django 的新手,这是我的 Procfile:
web: python testapp/manage.py runserver 0.0.0.0:$PORT
由于某种原因,当我尝试在浏览器中加载模板时,我似乎无法加载它。在python manage.py runserver 下正常工作,有人知道这是什么问题吗?是无法加载我的静态文件的情况吗?
准确的错误信息是:foreman start
TemplateDoesNotExist at /test/index.html
Request Method: GET
Request URL: http://127.0.0.1:5000/test/
【问题讨论】:
-
你写的 django 应用是否添加到 settings.py 中的 INSTALLED_APPS 列表中?应用模板是否位于 ..../app_name/templates/app_name/index.html 文件夹中?
标签: python django heroku foreman