raise TemplateDoesNotExist(template_name, chain=chain)
django.template.exceptions.TemplateDoesNotExist: login.html
在settings.py中的
TEMPLATES =
加入
'DIRS': [os.path.join(BASE_DIR, "templates"),],
raise TemplateDoesNotExist(template_name, chain=chain)
django.template.exceptions.TemplateDoesNotExist: login.html
在settings.py中的
TEMPLATES =
加入
'DIRS': [os.path.join(BASE_DIR, "templates"),],
转载于:https://www.cnblogs.com/xiaodebing/p/9151616.html