diff options
| author | Aymeric Augustin | 2013-10-16 23:03:07 +0200 |
|---|---|---|
| committer | Aymeric Augustin | 2013-10-17 18:24:58 +0200 |
| commit | 23c44d8c5cf560cc8cb304d8753e8b658d1fe70d (patch) | |
| tree | 575ad8a220c70a8f00a3d6fdab49f29d062d10be /debug_toolbar/toolbar/loader.py | |
| parent | c22528df06e821936590431db5ba1a424e16f6a0 (diff) | |
| download | django-debug-toolbar-23c44d8c5cf560cc8cb304d8753e8b658d1fe70d.tar.bz2 | |
Enable unicode_literals in all non-empty modules.
Diffstat (limited to 'debug_toolbar/toolbar/loader.py')
| -rw-r--r-- | debug_toolbar/toolbar/loader.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/debug_toolbar/toolbar/loader.py b/debug_toolbar/toolbar/loader.py index 5f01aa7..73ab0b6 100644 --- a/debug_toolbar/toolbar/loader.py +++ b/debug_toolbar/toolbar/loader.py @@ -2,6 +2,8 @@ The main DebugToolbar class that loads and renders the Toolbar. """ +from __future__ import unicode_literals + from django.conf import settings from django.template.loader import render_to_string from django.utils.datastructures import SortedDict @@ -16,7 +18,7 @@ class DebugToolbar(object): base_url = self.request.META.get('SCRIPT_NAME', '') self.config = { 'INTERCEPT_REDIRECTS': True, - 'MEDIA_URL': u'%s/__debug__/m/' % base_url + 'MEDIA_URL': '%s/__debug__/m/' % base_url } # Check if settings has a DEBUG_TOOLBAR_CONFIG and updated config self.config.update(getattr(settings, 'DEBUG_TOOLBAR_CONFIG', {})) |
