# MIME type (text/html) is not supported as css

**URL:** <https://forum.djangoproject.com/t/mime-type-text-html-is-not-supported-as-css/18795>\
**Category:** Templates & Frontend\
**Created:** [February 12, 2023, 8:12am UTC](https://forum.djangoproject.com/t/mime-type-text-html-is-not-supported-as-css/18795 "2023-02-12T08:12:19Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![KenWhitesell](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/kenwhitesell/32/280_2.png) [@KenWhitesell](https://forum.djangoproject.com/u/KenWhitesell)\
**Post date:** [February 12, 2023, 12:39pm UTC](https://forum.djangoproject.com/t/mime-type-text-html-is-not-supported-as-css/18795/2 "2023-02-12T12:39:27Z")

</div>

This error is almost always caused by a 404 being generated by the server. The 404 returns an html page instead of the css, causing this error.

To allow us to help you resolve this, please provide the following information:

- Describe the directory structure for your project,
- Tell us what directory that `csscode.css` file is in,
- Show us the STATIC\_URL and STATICFILES\_DIRS settings from your settings.py file
- Show us the line in your template where you’re trying to load that file

(And your English is just fine - don’t worry about it!)

---

_[View the full topic](https://forum.djangoproject.com/t/mime-type-text-html-is-not-supported-as-css/18795)._
