IsADirectoryError: [Errno 21] Is a directory: '/Users/mac/Desktop/Python_study/Djangotest/test01/template'
[12/Jan/2021 13:00:52] "GET /index/ HTTP/1.1" 500 99225
BUG问题:未在views.py里定义指定的HTML文件
解决办法:在views.py中指定HTML文件
return render(request, 'index.html', context=context)