From 189668eadd3f47d8c4a03ad2953b25a3a475a127 Mon Sep 17 00:00:00 2001 From: Thomas Grainger Date: Mon, 20 Aug 2012 13:35:46 +0100 Subject: use links to static files rather than direct inclusion, Fixes #307 --- debug_toolbar/toolbar/loader.py | 2 -- 1 file changed, 2 deletions(-) (limited to 'debug_toolbar/toolbar/loader.py') diff --git a/debug_toolbar/toolbar/loader.py b/debug_toolbar/toolbar/loader.py index 02a558d..ac42f3b 100644 --- a/debug_toolbar/toolbar/loader.py +++ b/debug_toolbar/toolbar/loader.py @@ -60,8 +60,6 @@ class DebugToolbar(object): context = self.template_context.copy() context.update({ 'panels': self.panels, - 'js': mark_safe(open(os.path.join(media_path, 'js', 'toolbar.min.js'), 'r').read()), - 'css': mark_safe(open(os.path.join(media_path, 'css', 'toolbar.min.css'), 'r').read()), }) return render_to_string('debug_toolbar/base.html', context) -- cgit v1.2.3