出现错误
Refused to apply style from ‘http://127.0.0.1:8000/statics/css/style.css’ because its MIME type (‘text/html’) is not a supported stylesheet MIME type, and strict MIME checking is enabled.
解决方法
- 先去看了一下有没有引入(路劲是否正确)都没有什么问题。
- 还试着改变路径,但还是有问题
- 还一直是这个错误
怀疑是路径的问题,没有获取到
最后在settings里面找到了这个问题
把settings里面的static改成和文件一样的statics