Refused to apply style from static/styles.css because its MIME type (‘text/html’) is not a supported stylesheet MIME type, and strict MIME checking is enabled.
Ive been on the error for 2 days now with no luck.
Side Note: When posting code here, enclose the code between lines of three
backtick - ` characters. This means you’ll have a line of ```, then your code,
then another line of ```. This forces the forum software to keep your code
properly formatted. (I have taken the liberty of correcting your original posts.
Please remember to do this in the future.)
Also, please don’t try to put the full description of the issue in the title. The title should be a short description of the issue. The full details should be posted in the body of the post.
We need more details about your environment.
Please post:
How are you running your project?
What web server are you using (Apache? Nginx?) and how is it configured for your project?
We’re probably going to need to ask more questions, but this will get us started.
What do the gunicorn (and possibly system) logs show for the requests for your static files?
You’ve got two entries in your settings file for MIDDLEWARE - this means that your first definition containing the reference to whitenoise is not being used.