Adding following snippet into settings.py
file may fix your problem:
import mimetypes
mimetypes.add_type("text/css", ".css", True)
More Related Contents:
- Django MEDIA_URL and MEDIA_ROOT
- Django – Login with Email
- Unicodedecodeerror with runserver
- Difference between static STATIC_URL and STATIC_ROOT on Django
- How to redirect with post data (Django)
- Django model “doesn’t declare an explicit app_label”
- Getting TypeError: __init__() missing 1 required positional argument: ‘on_delete’ when trying to add parent table after child table with entries
- ImportError: No module named ‘django.core.urlresolvers’
- How to set the timezone in Django
- NoReverseMatch with keyword argument uidb64 with Django 2.0
- Trying to parse `request.body` from POST in Django [duplicate]
- Django values_list vs values
- Django Admin nested inline
- How to create virtual env with python3
- ‘collectstatic’ command fails when WhiteNoise is enabled
- Microsoft Visual C++ 14.0 is required. Get it with “Microsoft Visual C++ Build Tools”: http://landinghub.visualstudio.com/visual-cpp-build-tools [duplicate]
- How to get the domain name of my site within a Django template?
- How to change ForeignKey display text in the Django Admin?
- Nested inlines in the Django admin?
- Class Based Views VS Function Based Views
- How to set and get session variable in django?
- Unable to import path from django.urls
- How to get the previous URL from a POST in Django
- Resize fields in Django Admin
- Django Admin: Using a custom widget for only one model field
- Django viewset has not attribute ‘get_extra_actions’
- Why is my static CSS not working in Django?
- Install mod_wsgi on Ubuntu with Python 3.6, Apache 2.4, and Django 1.11
- Add custom form fields that are not part of the model (Django)
- How to properly use the “choices” field option in Django