인프런 커뮤니티 질문&답변
static/blog/css/ 폴더에 css파일을 넣었는데 실행이 안됩니다
작성
·
222
0
css파일을 넣고 실행시키면 콘솔창에 아래와 같은 오류메시지가 나오는데 해결방법 문의드립니다
127.0.0.1/:1 Refused to apply style from 'http://127.0.0.1:8000/blog/1/%%20static%20'blog/css/blog-home.css'%20%' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled.
퀴즈
46%나 틀려요. 한번 도전해보세요!
Django에서 CSS, JavaScript와 같이 웹사이트의 디자인 및 레이아웃을 구성하는 파일을 무엇이라고 부를까요?
미디어 파일 (Media files)
템플릿 파일 (Template files)
정적 파일 (Static files)
데이터 파일 (Data files)
답변 1
0
SungYong Lee
지식공유자
CSS 파일 경로가 이상한데요? html 파일 보여주시면 원인을 찾아보겠습니다.
settings.py나 프로젝트의 urls.py가 잘못 되어 있을 수도 있습니다.





