2013-04-23 18:51:17 +02:00
|
|
|
from __future__ import absolute_import
|
|
|
|
|
2012-10-15 22:52:08 +02:00
|
|
|
from django.conf import settings
|
2013-06-18 23:55:55 +02:00
|
|
|
import ujson
|
2012-10-15 22:52:08 +02:00
|
|
|
|
2012-10-30 21:20:52 +01:00
|
|
|
def add_settings(request):
|
2012-10-17 20:34:38 +02:00
|
|
|
return {
|
|
|
|
'full_navbar': settings.FULL_NAVBAR,
|
2013-10-25 19:31:13 +02:00
|
|
|
'localserver': settings.LOCALSERVER,
|
2012-10-17 20:34:38 +02:00
|
|
|
}
|
2013-06-17 18:01:22 +02:00
|
|
|
|
|
|
|
def add_metrics(request):
|
|
|
|
return {
|
|
|
|
'mixpanel_token': settings.MIXPANEL_TOKEN,
|
2013-06-18 23:55:55 +02:00
|
|
|
'enable_metrics': ujson.dumps(settings.DEPLOYED),
|
2013-06-17 18:01:22 +02:00
|
|
|
}
|