摘要: 12. Create the templates 你需要做三件事来去掉TemplateDoesNotExist错误第一件,创建下面目录* netmag/netmag/templates* netmag/netmag/templates/blog 下一步,你需要配置Django能找到你的templates。打开settings.py文件找到TEMPLATE_DIRS元组。 你只需要告诉django去哪找你的netmag/netmag/templates目录,所以编辑TEMPLATE_DIRS元组,让它有指向netmag/netmag/templates目录的绝对路径。字符串后面的逗号很重要... 阅读全文
posted @ 2013-10-06 13:14 Tuesday 阅读(595) 评论(0) 推荐(0) 编辑