我已经做了很多点击和同步数据库,但还没有找到解决方案。我收到此错误:
TemplateDoesNotExist at /quotes/
quotes/index.html
Request Method: GET
Request URL:    http://quoteboard94.herokuapp.com/quotes/
Django Version: 1.4.4 
Exception Type: TemplateDoesNotExist
Exception Value:    
quotes/index.html
Exception Location: /app/.heroku/python/lib/python2.7/site-packages/django/template/loader.py in find_template, line 138
Python Executable:  /app/.heroku/python/bin/python
Python Version: 2.7.3
Python Path:    
['/app',
 '/app/.heroku/python/lib/python2.7/site-packages/pip-1.1-py2.7.egg',
 '/app',
 '/app/.heroku/python/lib/python27.zip',
 '/app/.heroku/python/lib/python2.7',
 '/app/.heroku/python/lib/python2.7/plat-linux2',
 '/app/.heroku/python/lib/python2.7/lib-tk',
 '/app/.heroku/python/lib/python2.7/lib-old',
 '/app/.heroku/python/lib/python2.7/lib-dynload',
 '/app/.heroku/python/lib/python2.7/site-packages',
 '/app/.heroku/python/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg-info']
我的设置是这样的:
PROJECT_DIR = os.path.dirname(__file__) #for heroku
TEMPLATE_DIRS = (
    os.path.join(PROJECT_DIR, '/templates/'), # for heroku
    '/Users/jacksongonzales/projects/QuoteBoard/templates/',
)
import os.path也是最高的。
TEMPLATE_DIRS 下的路径是我的模板的绝对路径。
我没有为 PROJECT_DIR 和 TEMPLATE_DIRS 变量添加正确的东西吗?