Skip to content

Commit aeb45f2

Browse files
committed
Merge pull request #322 from mattrobenolt/fix-static-urls
Fix static assets
2 parents ad15287 + 171406f commit aeb45f2

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

debug_toolbar/templates/debug_toolbar/base.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
@media print { #djDebug {display:none;}}
44
</style>
55
<link rel="stylesheet" href="{{ STATIC_URL }}debug_toolbar/css/toolbar.min.css" type="text/css">
6-
<script type="text/javascript" src="{{ STATIC_URL }}debug_toolbar/css/toolbar.min.js"></script>
6+
<script type="text/javascript" src="{{ STATIC_URL }}debug_toolbar/js/toolbar.min.js"></script>
77
<div id="djDebug" style="display:none;" dir="ltr">
88
<div style="display:none;" id="djDebugToolbar">
99
<ul id="djDebugPanelList">

debug_toolbar/toolbar/loader.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ def __init__(self, request):
2626
self.template_context = {
2727
'BASE_URL': base_url, # for backwards compatibility
2828
'DEBUG_TOOLBAR_MEDIA_URL': self.config.get('MEDIA_URL'),
29+
'STATIC_URL': settings.STATIC_URL,
2930
}
3031

3132
self.load_panels()
@@ -55,8 +56,6 @@ def render_toolbar(self):
5556
"""
5657
Renders the overall Toolbar with panels inside.
5758
"""
58-
media_path = os.path.join(os.path.dirname(__file__), os.pardir, 'media', 'debug_toolbar')
59-
6059
context = self.template_context.copy()
6160
context.update({
6261
'panels': self.panels,

0 commit comments

Comments
 (0)