Django-debug-toolbar looking for assets along a relative path?

I try to run django-debug-toolbar, and after following all the instructions, I get the following errors:

[05/Sep/2012 15:33:35] "GET /profile/edit/ HTTP/1.1" 200 43647 [05/Sep/2012 15:33:36] "GET /profile/edit/debug_toolbar/css/toolbar.min.css HTTP/1.1" 404 86163 [05/Sep/2012 15:33:36] "GET /profile/edit/debug_toolbar/css/toolbar.min.js HTTP/1.1" 404 66260 

The HTML source refers to these things relatively.

When I grep through the debug toolbar sources, I see two lines:

 debug_toolbar/templates/debug_toolbar/base.html:5:<link rel="stylesheet" href="{{ STATIC_URL }}debug_toolbar/css/toolbar.min.css" type="text/css"> debug_toolbar/templates/debug_toolbar/base.html:6:<script type="text/javascript" src="{{ STATIC_URL }}debug_toolbar/css/toolbar.min.js"></script> 

However, my STATIC_URL is set in /static/ in the settings.py file for the project. Am I misunderstood something?

+4
source share
1 answer

I manually applied the fixes provided here and it helped me.

+3
source

Source: https://habr.com/ru/post/1432575/


All Articles