Template Loader Error:
Django tried loading these templates, in this order:
Using loader django.template.loaders.filesystem.Loader:
Using loader django.template.loaders.app_directories.Loader:
F:\python2.7\lib\site-packages\django-1.8.2-py2.7.egg\django\contrib\admin\templates\maby.html (File does not exist)
F:\python2.7\lib\site-packages\django-1.8.2-py2.7.egg\django\contrib\auth\templates\maby.html (File does not exist)
Django并没有去博主指定的文件夹中寻找模板文件,而是去到了两个默认的文件夹中寻找,随再次寻找答案,最终找到如下办法:
修改setting.py,添加以下内容:
import os
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))