admin css not working

158 views
Skip to first unread message

pritesh singh

unread,
Jul 17, 2016, 6:52:23 AM7/17/16
to Django users
The stylesheet http://127.0.0.1:8000/static/admin/css/base.css was not loaded because its MIME type, "application/x-css", is not "text/css".

The stylesheet http://127.0.0.1:8000/static/admin/css/dashboard.css was not loaded because its MIME type, "application/x-css", is not "text/css".

in browser console following error occurs
error1.png

Tim Graham

unread,
Jul 17, 2016, 3:52:49 PM7/17/16
to Django users
Do you have DEBUG=False in your settings? That disables automatic serving of static files: https://docs.djangoproject.com/en/stable/howto/static-files/#serving-static-files-during-development

Shem Nashon

unread,
Jul 18, 2016, 10:37:56 AM7/18/16
to Django users
TRy to be a bit clear, does CSS for your own static files load, have you set up or deleted STATIC_URL setting or static_root
Reply all
Reply to author
Forward
0 new messages