How can i set up django debug toolbar when using django static files and media files
Below is my configuration in urls.py
if settings.DEBUG:
urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
urlpatterns += [
path('__debug__/', include(debug_toolbar.urls)),]
I am not sure whether the line with 'elif' is the right way to do it. (The web app crashes when i try to launch it in dev)