1.新建templates目录
2.在settings里注册
注册的方式: 先找到TEMPLATES的列表,再在该列表中添加 'DIRS': [os.path.join(BASE_DIR, 'templates')]