django部署到linux上不显示.svg图标处理方法

在setting文件的最开始添加如下内容: 
import mimetypes 
mimetypes.add_type("image/svg+xml", ".svg", True) 
mimetypes.add_type("image/svg+xml", ".svgz", True) 

猜你喜欢

转载自www.cnblogs.com/qiangayz/p/9206445.html
今日推荐