From a4cd1523106600100b56de01e967e9b0bfe39c59 Mon Sep 17 00:00:00 2001 From: Roberto Rosario Date: Tue, 16 Jun 2015 20:42:03 -0400 Subject: [PATCH] Cache compiled templates by default in production settings. Turn off Celery's eager behaviour in production by default. --- mayan/settings/production.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/mayan/settings/production.py b/mayan/settings/production.py index fbb5cbf4cd..aae3cd3988 100644 --- a/mayan/settings/production.py +++ b/mayan/settings/production.py @@ -7,3 +7,12 @@ DEBUG = False # Update this accordingly; # https://docs.djangoproject.com/en/dev/ref/settings/#allowed-hosts ALLOWED_HOSTS = ['*'] + +TEMPLATE_LOADERS = ( + ('django.template.loaders.cached.Loader', ( + 'django.template.loaders.filesystem.Loader', + 'django.template.loaders.app_directories.Loader', + )), +) + +CELERY_ALWAYS_EAGER = False