Don't load development apps if they are already loaded.

Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
This commit is contained in:
Roberto Rosario
2018-10-12 03:10:56 -04:00
parent 38c84de708
commit eb357b18fc
3 changed files with 14 additions and 7 deletions

View File

@@ -3,6 +3,7 @@
* Fix an issue with some browsers not firing the .load event on cached
images. Ref: http://api.jquery.com/load-event/
* Remove duplicate YAML loading of environment variables.
* Don't load development apps if they are already loaded.
3.1.6 (2018-10-09)
==================

View File

@@ -9,10 +9,15 @@ DEBUG = True
CELERY_ALWAYS_EAGER = True
CELERY_EAGER_PROPAGATES_EXCEPTIONS = CELERY_ALWAYS_EAGER
INSTALLED_APPS += (
'rosetta',
'django_extensions',
)
if 'rosetta' not in INSTALLED_APPS:
INSTALLED_APPS += (
'rosetta',
)
if 'django_extensions' not in INSTALLED_APPS:
INSTALLED_APPS += (
'django_extensions',
)
TEMPLATES[0]['OPTIONS']['loaders'] = (
'django.template.loaders.filesystem.Loader',

View File

@@ -6,9 +6,10 @@ from .development import * # NOQA
# see https://github.com/django-debug-toolbar/django-debug-toolbar/issues/524
DEBUG_TOOLBAR_PATCH_SETTINGS = False
INSTALLED_APPS += (
'debug_toolbar',
)
if 'debug_toolbar' not in INSTALLED_APPS:
INSTALLED_APPS += (
'debug_toolbar',
)
MIDDLEWARE_CLASSES = (
'debug_toolbar.middleware.DebugToolbarMiddleware',