1. Create templates directory
2. Register in settings where
注册的方式:
先找到TEMPLATES的列表,再在该列表中添加
'DIRS': [os.path.join(BASE_DIR, 'templates')]
1. Create templates directory
2. Register in settings where
注册的方式:
先找到TEMPLATES的列表,再在该列表中添加
'DIRS': [os.path.join(BASE_DIR, 'templates')]