سلام . من یک سایت طراحی کردم که تا هفته پیش روی لوکالم بخوبی کار میکرد ، بعد از یک هفته که سراعش رفم دیدم هیچ کدام از 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، توسط رضا رمضانپور دلیل: یاÙتن پاسخ