python django 部署web服务
方式一正常:
python manage.py runserver
方式二报错:
使用uwsgi 启动 uwsgi
报错内容: Resource interpreted as Stylesheet but transferred with MIME type text/html
python django 部署web服务
方式一正常:
python manage.py runserver
方式二报错:
使用uwsgi 启动 uwsgi
报错内容: Resource interpreted as Stylesheet but transferred with MIME type text/html
4 回答4.4k 阅读✓ 已解决
4 回答3.8k 阅读✓ 已解决
1 回答3k 阅读✓ 已解决
3 回答2.1k 阅读✓ 已解决
1 回答4.5k 阅读✓ 已解决
1 回答3.8k 阅读✓ 已解决
1 回答2.8k 阅读✓ 已解决
其实问题不在uwsgi上,而是你的浏览器将静态文件css识别为文本文件
text/html
格式了,这说明你css文件返回的响应头不是text/css
而是text/html
,还有1种情况就是你系统设置上的问题,可以参考。