Set CELERY_ALWAYS_EAGER to True on the development setting file.

Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
This commit is contained in:
Roberto Rosario
2018-04-29 23:14:55 -04:00
parent 430c7b8c14
commit a788a99d93
2 changed files with 15 additions and 14 deletions

View File

@@ -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

View File

@@ -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