Update context_processors
-from polyaxon.utils import ROOT_DIR, config
-
LIST_TEMPLATE_CONTEXT_PROCESSORS = [
'django.contrib.auth.context_processors.auth',
- 'django.template.context_processors.debug',
- 'django.template.context_processors.media',
- 'django.template.context_processors.static',
- 'django.template.context_processors.tz',
- 'django.contrib.messages.context_processors.messages',
'polyaxon.context_processors.versions',
'polyaxon.context_processors.cluster',
- 'apis.context_processors.sso_enabled',
]
-
-JS_DEBUG = config.get_boolean('POLYAXON_JS_DEBUG')
-
-if JS_DEBUG:
- def js_debug_processor(request):
- return {'js_debug': True}
-
- LIST_TEMPLATE_CONTEXT_PROCESSORS += ('polyaxon.settings.js_debug_processor',)
