Move whitenoise test disabling to base.py. Disable the whitenoise runserver app. Disable Manifest static storage.
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
This commit is contained in:
@@ -1,7 +1 @@
|
|||||||
from .base import * # NOQA
|
from .base import * # NOQA
|
||||||
|
|
||||||
# Remove whitenoise from middlewares. Causes out of memory errors during test
|
|
||||||
# suit
|
|
||||||
MIDDLEWARE_CLASSES = [
|
|
||||||
cls for cls in MIDDLEWARE_CLASSES if cls !='whitenoise.middleware.WhiteNoiseMiddleware'
|
|
||||||
]
|
|
||||||
|
|||||||
@@ -3,6 +3,7 @@ from __future__ import absolute_import, unicode_literals
|
|||||||
from .. import * # NOQA
|
from .. import * # NOQA
|
||||||
|
|
||||||
INSTALLED_APPS += ('test_without_migrations',)
|
INSTALLED_APPS += ('test_without_migrations',)
|
||||||
|
INSTALLED_APPS -= ('whitenoise.runserver_nostatic',)
|
||||||
|
|
||||||
COMMON_PRODUCTION_ERROR_LOG_PATH = '/tmp/mayan-errors.log'
|
COMMON_PRODUCTION_ERROR_LOG_PATH = '/tmp/mayan-errors.log'
|
||||||
|
|
||||||
@@ -10,3 +11,11 @@ TEMPLATES[0]['OPTIONS']['loaders'] = (
|
|||||||
'django.template.loaders.filesystem.Loader',
|
'django.template.loaders.filesystem.Loader',
|
||||||
'django.template.loaders.app_directories.Loader',
|
'django.template.loaders.app_directories.Loader',
|
||||||
)
|
)
|
||||||
|
|
||||||
|
# Remove whitenoise from middlewares. Causes out of memory errors during test
|
||||||
|
# suit
|
||||||
|
MIDDLEWARE_CLASSES = [
|
||||||
|
cls for cls in MIDDLEWARE_CLASSES if cls !='whitenoise.middleware.WhiteNoiseMiddleware'
|
||||||
|
]
|
||||||
|
|
||||||
|
STATICFILES_STORAGE = None
|
||||||
|
|||||||
Reference in New Issue
Block a user