DjnagoПотому что его MIME-тип ('text/html') не поддерживается таблицей стилей
Кто-нибудь может помочь, неделями пытаюсь понять, как найти нормальный путь. Но ничего не получается.
Сценарий:
STATIC_URL = '/static/'
STATIC_ROOT = os.path.join(BASE_DIR, "static")
#HTML Script
{% load static %}
<link rel="stylesheet" href="{% static 'CSS/Base.css' %}">
#Url.py Script
from django.conf import settings
from django.conf.urls.static import static
urlpatterns = [
path('', include('Website.urls')),
path('admin/', admin.site.urls),
] + static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)
Код ошибки:
Refused to apply style from 'http://46.251.28.105:8000/static/CSS/Base.css' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled.
Путь:
C:\Users\NexaHn\Desktop\Weboldal\AnimeEx\static
Изображение:
Загружается неправильно