Expose template processor to other services
@@ -21,6 +21,13 @@ if config.is_monolith_service or config.is_api_service:
LIST_TEMPLATE_CONTEXT_PROCESSORS += ('polyaxon.settings.js_debug_processor',)
+else:
+ LIST_TEMPLATE_CONTEXT_PROCESSORS = [
+ 'django.contrib.auth.context_processors.auth',
+ 'polyaxon.context_processors.versions',
+ 'polyaxon.context_processors.cluster',
+ ]
+
TEMPLATES_DEBUG = (config.get_boolean('DJANGO_TEMPLATE_DEBUG', is_optional=True) or
config.is_debug_mode)
TEMPLATES = [
@@ -36,10 +43,3 @@ if config.is_monolith_service or config.is_api_service:
},
},
]
-
-else:
- LIST_TEMPLATE_CONTEXT_PROCESSORS = [
- 'django.contrib.auth.context_processors.auth',
- 'polyaxon.context_processors.versions',
- 'polyaxon.context_processors.cluster',
- ]
