raise TemplateDoesNotExist

raise TemplateDoesNotExist(template_name, chain=chain)
django.template.exceptions.TemplateDoesNotExist: login.html

 

在settings.py中的

TEMPLATES =
加入
'DIRS': [os.path.join(BASE_DIR, "templates"),],
posted @ 2018-06-07 16:57  xiaodebing  阅读(2194)  评论(0编辑  收藏  举报