From a788a99d93c91daed6f7c0e1b3006890f8f81bee Mon Sep 17 00:00:00 2001 From: Roberto Rosario Date: Sun, 29 Apr 2018 23:14:55 -0400 Subject: [PATCH] Set CELERY_ALWAYS_EAGER to True on the development setting file. Signed-off-by: Roberto Rosario --- mayan/settings/development.py | 17 +++++++++-------- mayan/settings/development_ddt.py | 12 ++++++------ 2 files changed, 15 insertions(+), 14 deletions(-) diff --git a/mayan/settings/development.py b/mayan/settings/development.py index 7a5ece71d5..ea92f01268 100644 --- a/mayan/settings/development.py +++ b/mayan/settings/development.py @@ -2,20 +2,21 @@ from __future__ import absolute_import, unicode_literals from . import * # NOQA -DEBUG = True - ALLOWED_HOSTS = ['*'] -TEMPLATES[0]['OPTIONS']['loaders'] = ( - 'django.template.loaders.filesystem.Loader', - 'django.template.loaders.app_directories.Loader', -) +DEBUG = True + +CELERY_ALWAYS_EAGER = True +CELERY_EAGER_PROPAGATES_EXCEPTIONS = CELERY_ALWAYS_EAGER INSTALLED_APPS += ( 'rosetta', 'django_extensions', ) -WSGI_AUTO_RELOAD = True +TEMPLATES[0]['OPTIONS']['loaders'] = ( + 'django.template.loaders.filesystem.Loader', + 'django.template.loaders.app_directories.Loader', +) -CELERY_EAGER_PROPAGATES_EXCEPTIONS = CELERY_ALWAYS_EAGER +WSGI_AUTO_RELOAD = True diff --git a/mayan/settings/development_ddt.py b/mayan/settings/development_ddt.py index 608e498126..f97a9add90 100644 --- a/mayan/settings/development_ddt.py +++ b/mayan/settings/development_ddt.py @@ -2,14 +2,14 @@ from __future__ import absolute_import, unicode_literals from .development import * # NOQA -INSTALLED_APPS += ( - 'debug_toolbar', -) - # Stop debug toolbar patching! # see https://github.com/django-debug-toolbar/django-debug-toolbar/issues/524 DEBUG_TOOLBAR_PATCH_SETTINGS = False -WSGI_AUTO_RELOAD = True +INSTALLED_APPS += ( + 'debug_toolbar', +) -MIDDLEWARE_CLASSES = ('debug_toolbar.middleware.DebugToolbarMiddleware',) + MIDDLEWARE_CLASSES +MIDDLEWARE_CLASSES = ( + 'debug_toolbar.middleware.DebugToolbarMiddleware', +) + MIDDLEWARE_CLASSES