zulip/zephyr/context_processors.py

16 lines
345 B
Python
Raw Normal View History

from __future__ import absolute_import
from django.conf import settings
import simplejson
def add_settings(request):
return {
'full_navbar': settings.FULL_NAVBAR,
}
def add_metrics(request):
return {
'mixpanel_token': settings.MIXPANEL_TOKEN,
'enable_metrics': simplejson.dumps(settings.DEPLOYED),
}