I’ve had the same issue in the past. I fixed it by removing
*rel="stylesheet *


On Mon, Jul 6, 2020 at 1:20 PM ashish goyal <kumarashish2...@gmail.com>
wrote:

> Hi All,
>
> I have created a django app on windows and have used bootstrap navbar n
> other functions which are working good on windows.
>
> Same files I have imported on unix server then i am able to get all
> details but getting issue with css and js files saying below error
>
> *Refused to apply style from <URL> because its MIME type ('text/html') is
> not a supported stylesheet MIME type, and strict MIME checking is enabled
> angular*
>
> I am using below script in windows which is working in windows but not on
> unix
>
> *{ % load static %}*
> *<link rel="stylesheet" type="text/css" href="{ % static
> ‘main/css/bootstrap.min.css %}” />*
>
> Any suggestions, static and static url js defined i. Settings.py already.
> Since all working fine on windows dont know same code is not working for
> css and js while data is fetching correctly
>
> Thanks
> Ashish
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/D45C33B1-949B-4BBE-8338-8982F2A246BF%40gmail.com
> <https://groups.google.com/d/msgid/django-users/D45C33B1-949B-4BBE-8338-8982F2A246BF%40gmail.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAEtabwcUaMsPwztfk-aep_t3cKjva-fSAtfYcX3wJDgA6NhwXg%40mail.gmail.com.

Reply via email to