سلام . من یک سایت طراحی کردم که تا هفته پیش روی لوکالم بخوبی کار میکرد ، بعد از یک هفته که سراعش رفم دیدم هیچ کدام از css ها رو نمیشناسه و موقع بررسی صفحه با ابزار web developer بروزرم با این ارورها مواجه شدم
The stylesheet http://127.0.0.1:8000/static/admin/css/changelists.css was not loaded because its MIME type, “text/plain”, is not “text/css”.
The stylesheet http://127.0.0.1:8000/static/autocomplete_light/select2.css was not loaded because its MIME type, “text/plain”, is not “text/css”.
The stylesheet http://127.0.0.1:8000/static/autocomplete_light/vendor/select2/dist/css/select2.css was not loaded because its MIME type, “text/plain”, is not “text/css”.
نمیدونم برنامه ای نصب کردم که باعث این مشکل شده یا دلیل دیگه ای داره لطفا راهنمایی کنید
حل مشکل
مشکل با این روش حل شد . امیدوارم برای دیگران هم مفید باشد :
On your computer search for "regedit.exe" (go to the start menu and click on the search button on the top-right corner of the screen).
Once regedit opens up, on the left column click on "HKEY_CLASSES_ROOT" and then on ".css"
On the right column double-click on "Content Type". This will open up a dialog box.
In the dialog box change "value data" to "text/css".
Click "Ok" and that's it.
آخرین ویرایش: 15-10-2018 ???? 08:50، توسط رضا رمضانپور دلیل: یاÙتن پاسخ
راه حلی که بالا توضیح دادم فقط ارور style.css اصلی سایتم رو برطرف کرد . در صفحه های دیگه هنوز ارورهایی از این دست موجودند . چرا ؟
مثلا : The stylesheet http://127.0.0.1:8000/static/ckeditor/ckeditor/contents.css?t=H8DA was not loaded because its MIME type – zg500 5 سال پیش
خیلی جالبه :) تا حالا نشدیده بودم کسی چنین مشکلی داشته باشه و جوابش این باشه. فکر میکنم باید از قسمت File Types از Folder Options بقیه رو پیگیری کنید. – رضا رمضانپور 5 سال پیش
– zg500 5 سال پیش
در مرورگر opera سایت درسته ولی توی mozilafirefox,internetexplorer,chrome مشکل دارد – zg500 5 سال پیش
– zg500 5 سال پیش