如果render使用的html文件不加路径的话,有可能会render到C盘Python安装目录的template里,然后找不到index.html进而报错,所以可以尝试加上index.html的文件路径
2017-04-03
进index 就报错
<a href="{% url 'blog:article_page' article.id %}">{{ a.title }} </a>
Reverse for 'article_page' with arguments '('',)' and keyword arguments '{}' not found. 1 pattern(s) tried: [u'blog/article/(?P<article_id>[0-9]+)$'
<a href="{% url 'blog:article_page' article.id %}">{{ a.title }} </a>
Reverse for 'article_page' with arguments '('',)' and keyword arguments '{}' not found. 1 pattern(s) tried: [u'blog/article/(?P<article_id>[0-9]+)$'
2017-04-03