diff options
| author | nbstrite | 2008-09-16 21:53:44 -0400 |
|---|---|---|
| committer | nbstrite | 2008-09-16 21:53:44 -0400 |
| commit | 7e27e62a690e98150f2294ff8f3aa7e43fc83e9c (patch) | |
| tree | 1d7e260bb6be8176abf2d30b918cb8c6e692d103 | |
| parent | db62fbe4af73297698d0e716e4478f9662c813ce (diff) | |
| download | django-debug-toolbar-7e27e62a690e98150f2294ff8f3aa7e43fc83e9c.tar.bz2 | |
Fixed bug where django application was assumed to installed at / url.
| -rw-r--r-- | debug_toolbar/templates/debug_toolbar/base.html | 6 | ||||
| -rw-r--r-- | debug_toolbar/toolbar/loader.py | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/debug_toolbar/templates/debug_toolbar/base.html b/debug_toolbar/templates/debug_toolbar/base.html index 8ee29d2..58f4820 100644 --- a/debug_toolbar/templates/debug_toolbar/base.html +++ b/debug_toolbar/templates/debug_toolbar/base.html @@ -1,7 +1,7 @@ -<script src="/__debug__/m/jquery.js" type="text/javascript" charset="utf-8"></script> -<script src="/__debug__/m/toolbar.js" type="text/javascript" charset="utf-8"></script> +<script src="{{ base_url }}/__debug__/m/jquery.js" type="text/javascript" charset="utf-8"></script> +<script src="{{ base_url }}/__debug__/m/toolbar.js" type="text/javascript" charset="utf-8"></script> <style type="text/css"> - @import url(/__debug__/m/toolbar.css); + @import url({{ base_url }}/__debug__/m/toolbar.css); </style> <div id="djDebug"> <div id="djDebugToolbar"> diff --git a/debug_toolbar/toolbar/loader.py b/debug_toolbar/toolbar/loader.py index 67dcc3e..b2de90e 100644 --- a/debug_toolbar/toolbar/loader.py +++ b/debug_toolbar/toolbar/loader.py @@ -58,4 +58,4 @@ class DebugToolbar(object): """ Renders the overall Toolbar with panels inside. """ - return render_to_string('debug_toolbar/base.html', {'panels': self.panels}) + return render_to_string('debug_toolbar/base.html', {'panels': self.panels, 'base_url': self.request.META.get('SCRIPT_NAME', '')}) |
