Cache compiled templates by default in production settings. Turn off Celery's eager behaviour in production by default.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user