django创建新app的时候 setting中 #'DIRS': [BASE_DIR / 'templates'] 'DIRS': [os.path.join(BASE_DIR, 'templates')] 上一行要注释掉