Added STATIC_URL to all templates.
authorŁukasz Rekucki <lrekucki@gmail.com>
Tue, 11 May 2010 15:00:13 +0000 (17:00 +0200)
committerŁukasz Rekucki <lrekucki@gmail.com>
Tue, 11 May 2010 15:00:13 +0000 (17:00 +0200)
wolnelektury/context_processors.py [new file with mode: 0644]
wolnelektury/settings.py

diff --git a/wolnelektury/context_processors.py b/wolnelektury/context_processors.py
new file mode 100644 (file)
index 0000000..0cbf605
--- /dev/null
@@ -0,0 +1,6 @@
+
+def extra_settings(request):
+    from django.conf import settings
+    return {
+        'STATIC_URL': settings.STATIC_URL,
+    }
index 62a2c9e..afb84e8 100644 (file)
@@ -67,6 +67,7 @@ TEMPLATE_CONTEXT_PROCESSORS = [
     'django.core.context_processors.i18n',
     'django.core.context_processors.media',
     'django.core.context_processors.request',
     'django.core.context_processors.i18n',
     'django.core.context_processors.media',
     'django.core.context_processors.request',
+    'context_processors.extra_settings',
 ]
 
 MIDDLEWARE_CLASSES = [
 ]
 
 MIDDLEWARE_CLASSES = [
@@ -96,7 +97,7 @@ INSTALLED_APPS = [
     'django.contrib.sites',
     'django.contrib.admin',
     'django.contrib.admindocs',
     'django.contrib.sites',
     'django.contrib.admin',
     'django.contrib.admindocs',
-    
+
     # external
     'south',
     'sorl.thumbnail',
     # external
     'south',
     'sorl.thumbnail',
@@ -131,7 +132,7 @@ COMPRESS_JS = {
         'output_filename': 'js/jquery.min.js',
     },
     'all': {
         'output_filename': 'js/jquery.min.js',
     },
     'all': {
-        'source_filenames': ('js/jquery.autocomplete.js', 'js/jquery.form.js', 
+        'source_filenames': ('js/jquery.autocomplete.js', 'js/jquery.form.js',
             'js/jquery.countdown.js', 'js/jquery.countdown-pl.js',
             'js/jquery.jqmodal.js', 'js/jquery.labelify.js', 'js/catalogue.js',
             'js/jquery.cookie.js',),
             'js/jquery.countdown.js', 'js/jquery.countdown-pl.js',
             'js/jquery.jqmodal.js', 'js/jquery.labelify.js', 'js/catalogue.js',
             'js/jquery.cookie.js',),