mirror of
https://github.com/zulip/zulip.git
synced 2025-11-05 06:23:38 +00:00
Wrapping render_to_response never actually worked correctly. On the login page, mixpanel_token would be missing, but we wouldn't get an error because it is surrounded by double quotes, which meant that it was still valid Javascript. (imported from commit 820ee42fab8f679983e5a3a4309a2feaf690f20f)
15 lines
282 B
Python
15 lines
282 B
Python
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,
|
|
}
|