djangodebug toolbar not showing
# in settings file
import mimetypes
mimetypes.add_type("application/javascript", ".js", True)
"""The main reason for not showing up the toolbar is because of the javascript mime-types error when you connect the debug_toolbar
If the already added to your application then just add two lines of code in your settings.py file."""
Are there any code examples left?
New code examples in category Python