Commit 907d37c8 authored by Christos Stavrakakis's avatar Christos Stavrakakis

Move context_processors from common to middleware

parent a046ec89
......@@ -64,7 +64,7 @@ context_processors = [
'astakos.im.context_processors.custom_messages',
'astakos.im.context_processors.last_login_method',
'astakos.im.context_processors.membership_policies',
'synnefo.lib.context_processors.cloudbar'
'synnefo.webproject.context_processors.cloudbar'
]
middlware_classes = [
......
......@@ -11,7 +11,8 @@ synnefo_web_apps = [
]
synnefo_web_middleware = []
synnefo_web_context_processors = ['synnefo.lib.context_processors.cloudbar']
synnefo_web_context_processors = \
['synnefo.webproject.context_processors.cloudbar']
synnefo_static_files = {
'synnefo.ui': 'ui/static',
......
......@@ -8,8 +8,9 @@ def cloudbar(request):
context plus a ready to use pre rendered script html tag containing valid
javascript code for cloudbar to display.
To use it add ``synnefo.lib.context_processors.cloudbar`` in your project's
``TEMPLATE_CONTEXT_PROCESSORS setting`` (snf-webproject already does).
To use it add ``synnefo.webproject.context_processors.cloudbar`` in your
project's ``TEMPLATE_CONTEXT_PROCESSORS setting`` (snf-webproject already
does).
Then in your base html template::
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment