I am using same but still css is not available when i am clicking on css file link from inspect.
Is it because i have not configured nginx as i am just running app from runserver on unix machine. Was working fine on windows. No change Thanks Ashish > On 07-Jul-2020, at 00:11, Vishesh Mangla <manglavishes...@gmail.com> wrote: > > > Href = “{% static appname/something.css %}” > > Sent from Mail for Windows 10 > > From: ashish goyal > Sent: 06 July 2020 23:50 > To: django-users@googlegroups.com > Subject: Static not working on unix while working on windows > > 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. > > -- > 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/2A992212-ECB5-4FBA-BE2A-6775FE777304%40hxcore.ol. -- 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/9A4AC834-CFD6-477E-BCCB-3829A13D7087%40gmail.com.