root / cloudcms / context_processors.py @ c1468bcc
History | View | Annotate | Download (446 Bytes)
1 |
from django.conf import settings |
---|---|
2 |
|
3 |
from cloudcms.models import Application |
4 |
|
5 |
def cloudbar(request): |
6 |
return {
|
7 |
'CLOUDBAR_BASE_URL': getattr(settings, 'CLOUDBAR_BASE_URL', ''), |
8 |
'CLOUDBAR_ACTIVE_SERVICE': getattr(settings, |
9 |
'CLOUDBAR_ACTIVE_SERVICE', 'okeanos_cms'), |
10 |
} |
11 |
|
12 |
def application(request): |
13 |
try:
|
14 |
return {'APP': Application.current()} |
15 |
except:
|
16 |
return {'APP': None} |
17 |
|