add API setting for UI live updates

include context data

update help text
This commit is contained in:
AlanCoding
2018-03-23 13:36:01 -04:00
committed by Jared Tabor
parent 61aafe15d6
commit f6e507ad12
4 changed files with 17 additions and 0 deletions

View File

@@ -2,6 +2,7 @@
# All Rights Reserved.
from django.views.generic.base import TemplateView, RedirectView
from django.conf import settings
class IndexView(TemplateView):
@@ -9,6 +10,7 @@ class IndexView(TemplateView):
def get_context_data(self, **kwargs):
context = super(IndexView, self).get_context_data(**kwargs)
context['UI_LIVE_UPDATES_ENABLED'] = settings.UI_LIVE_UPDATES_ENABLED
# Add any additional context info here.
return context