]> git.parisson.com Git - teleforma.git/commitdiff
add static template context proc
authoryomguy <yomguy@parisson.com>
Wed, 18 Apr 2012 10:18:09 +0000 (12:18 +0200)
committeryomguy <yomguy@parisson.com>
Wed, 18 Apr 2012 10:18:09 +0000 (12:18 +0200)
example/settings.py
teleforma/views.py

index 5b56103fdef72896cb63542a1a6f335f5d47c05b..9845b3f9e09b9f03600053435eab2c7ea0ae0114 100644 (file)
@@ -152,6 +152,7 @@ TEMPLATE_CONTEXT_PROCESSORS = (
     'postman.context_processors.inbox',
     "django.core.context_processors.i18n",
     "django.core.context_processors.media",
+    'django.core.context_processors.static',
 )
 
 TELEMETA_ORGANIZATION = 'Parisson'
index bf345bc8ee7c3b4e2da9fe87140301f8ca4bed67..0f570118493a66c30cb7e1ba6b9de14d3c0f3abf 100755 (executable)
@@ -162,7 +162,7 @@ class UsersView(ListView):
 
     def get_queryset(self):
         return User.objects.all().select_related(depth=1).order_by('last_name')
-        
+
     def get_context_data(self, **kwargs):
         context = super(UsersView, self).get_context_data(**kwargs)
         context['trainings'] = Training.objects.all()