2024-09-29 23:29:54 发布
网友
Code of the views file
模板不存在错误正在撤消。首先,django项目将html文件作为django模板文件读取,但我将“emmet.includeLanguages”:{“django html”:“html”}添加到settings.json中,但没有帮助
尝试将模板名称创建或编辑为index.htm,然后尝试:
def home(request) : .... code here.... return render(request, 'index.html')
如果有错误,请告诉我
尝试将模板名称创建或编辑为index.htm,然后尝试:
如果有错误,请告诉我
相关问题 更多 >
编程相关推荐