📌  相关文章
📜  'DIRS': [os.path.join(BASE_DIR,'template')], - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:13.578000             🧑  作者: Mango

代码示例1
BASE_DIR /"challenges"/"templates" 

'challenges' is the app name, it will automatically look for the app name and the
 folder inside naming 'templates'

And if all the template and static files are in app folder, then you only need to 
register the app in setting.py, Under the hood, django will autoamtically lookup for
the file named template and static in that app folder