Я попытался добавить проект sub frontend в свои шаблоны, но получил ошибку "Проверка MIME включена."?
goal I have two frontend project and I want to do create a new folder called
build_2inside my templates folder. inside thebuild_2haveindex. htmlfile and it was working just fineproblem but where I added
<link href="my_styles. css" rel="stylesheet">I got this errorNote: the
directorymyProject/home/templates/static/css/my_styles.css
полное сообщение об ошибке:
Refused to apply style from 'http://127.0.0.1:8000/css/my_styles.css' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled.
- I tried
- add
#settings.py
TEMPLATES['DIRS'].append(os.path.join(BASE_DIR, 'home/templates/build2'), os.path.join(BASE_DIR, 'home/templates'))
- add
#settings.py
STATICFILES_DIRS.append(os.path.join(BASE_DIR, 'home/templates/static'))