2015-01-22 18:29:12 +01:00
|
|
|
"""
|
|
|
|
Settings file for OpenSlides' tests
|
|
|
|
"""
|
|
|
|
|
|
|
|
import os
|
2015-06-16 10:37:23 +02:00
|
|
|
|
2015-01-22 18:29:12 +01:00
|
|
|
from openslides.global_settings import * # noqa
|
|
|
|
|
|
|
|
# Path to the directory for user specific data files
|
|
|
|
OPENSLIDES_USER_DATA_PATH = os.path.realpath(os.path.dirname(__file__))
|
|
|
|
|
|
|
|
|
|
|
|
# SECURITY WARNING: Keep the secret key used in production secret!
|
|
|
|
SECRET_KEY = 'secret'
|
|
|
|
|
|
|
|
# OpenSlides plugins
|
|
|
|
# Add plugins to this list.
|
|
|
|
|
2016-06-16 10:59:35 +02:00
|
|
|
INSTALLED_PLUGINS += ( # noqa
|
2015-01-22 18:29:12 +01:00
|
|
|
'tests.old.utils',
|
|
|
|
)
|
|
|
|
|
2016-06-16 10:59:35 +02:00
|
|
|
INSTALLED_APPS += INSTALLED_PLUGINS # noqa
|
2015-01-22 18:29:12 +01:00
|
|
|
|
|
|
|
|
|
|
|
# Database
|
|
|
|
# Change this to use MySQL or PostgreSQL.
|
|
|
|
# See https://docs.djangoproject.com/en/1.7/ref/settings/#databases
|
|
|
|
|
|
|
|
DATABASES = {
|
|
|
|
'default': {
|
|
|
|
'ENGINE': 'django.db.backends.sqlite3',
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
# Some other settings
|
|
|
|
|
|
|
|
TIME_ZONE = 'Europe/Berlin'
|
|
|
|
|
|
|
|
MEDIA_ROOT = os.path.join(OPENSLIDES_USER_DATA_PATH, '')
|
|
|
|
|
2016-06-16 10:59:35 +02:00
|
|
|
STATICFILES_DIRS.insert(0, os.path.join(OPENSLIDES_USER_DATA_PATH, 'static')) # noqa
|
2015-01-22 18:29:12 +01:00
|
|
|
|
2016-01-03 15:33:51 +01:00
|
|
|
SEARCH_INDEX = 'ram'
|
2015-01-22 18:29:12 +01:00
|
|
|
|
|
|
|
|
|
|
|
# Special test settings
|
|
|
|
# Use a faster password hasher.
|
|
|
|
|
|
|
|
PASSWORD_HASHERS = (
|
|
|
|
'django.contrib.auth.hashers.MD5PasswordHasher',
|
|
|
|
)
|