8👍
this work for me!
in settings.py
import mimetypes
mimetypes.add_type("application/javascript", ".js", True)
DEBUG_TOOLBAR_CONFIG = {
"INTERCEPT_REDIRECTS": False,
}
0👍
Try including static files in urls.py:
from django.conf import settings
from django.conf.urls.static import static
urlpatterns = [
# ... the rest of your URLconf goes here ...
] + static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)
OR
Try changing the version of django-debug-toolbar. I had the same problem on django-debug-toolbar-3.1.1 and just switched to 2.2 and it worked
- [Django]-Passing Editable Fields as validated_data method of Django-Rest-Framework Serializer
- [Django]-Test failures ("no transaction is active") with Ghost.py
- [Django]-Creating SubCategories with Django Models
- [Django]-Django get_object_or_404 is not defined
- [Django]-How to allow user to delete account in django allauth?
Source:stackexchange.com