Files
mayan-edms/mayan/settings/testing/base.py
2018-05-25 03:24:27 -04:00

25 lines
666 B
Python

from __future__ import absolute_import, unicode_literals
from .. import * # NOQA
INSTALLED_APPS += ('test_without_migrations',)
INSTALLED_APPS = [
cls for cls in INSTALLED_APPS if cls != 'whitenoise.runserver_nostatic'
]
COMMON_PRODUCTION_ERROR_LOG_PATH = '/tmp/mayan-errors.log'
TEMPLATES[0]['OPTIONS']['loaders'] = (
'django.template.loaders.filesystem.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