2015-01-05 15:01:42 +01:00
|
|
|
"""
|
|
|
|
Settings file for OpenSlides' tests
|
|
|
|
"""
|
2013-03-14 22:18:56 +01:00
|
|
|
|
2014-01-11 15:47:15 +01:00
|
|
|
import os
|
2013-09-25 10:01:01 +02:00
|
|
|
from openslides.global_settings import * # noqa
|
2013-03-14 22:18:56 +01:00
|
|
|
|
2014-01-11 15:47:15 +01:00
|
|
|
# Path to the directory for user specific data files
|
2015-01-05 15:01:42 +01:00
|
|
|
|
2014-01-11 15:47:15 +01:00
|
|
|
OPENSLIDES_USER_DATA_PATH = os.path.realpath(os.path.dirname(__file__))
|
|
|
|
|
2013-03-14 22:18:56 +01:00
|
|
|
|
2015-01-05 15:01:42 +01:00
|
|
|
# SECURITY WARNING: Keep the secret key used in production secret!
|
|
|
|
|
2014-10-11 14:34:49 +02:00
|
|
|
SECRET_KEY = 'secret'
|
2014-01-11 15:47:15 +01:00
|
|
|
|
2015-01-05 15:01:42 +01:00
|
|
|
|
|
|
|
# Use 'DEBUG = True' to get more details for server errors.
|
|
|
|
# SECURITY WARNING: Don't run with debug turned on in production!
|
|
|
|
|
|
|
|
DEBUG = True
|
|
|
|
TEMPLATE_DEBUG = DEBUG
|
|
|
|
|
|
|
|
|
|
|
|
# OpenSlides plugins
|
|
|
|
# Add plugins to this list.
|
|
|
|
|
|
|
|
INSTALLED_PLUGINS += (
|
2014-12-22 18:09:05 +01:00
|
|
|
'tests.utils',
|
2013-03-14 22:18:56 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
INSTALLED_APPS += INSTALLED_PLUGINS
|
2013-03-18 21:50:50 +01:00
|
|
|
|
2015-01-05 15:01:42 +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',
|
|
|
|
'NAME': ''
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2014-01-11 15:47:15 +01:00
|
|
|
# Some other settings
|
2015-01-05 15:01:42 +01:00
|
|
|
|
2014-01-11 15:47:15 +01:00
|
|
|
TIME_ZONE = 'Europe/Berlin'
|
|
|
|
|
|
|
|
MEDIA_ROOT = os.path.join(OPENSLIDES_USER_DATA_PATH, '')
|
2013-09-08 14:44:41 +02:00
|
|
|
|
2014-01-11 15:47:15 +01:00
|
|
|
TEMPLATE_DIRS = (
|
|
|
|
os.path.join(OPENSLIDES_USER_DATA_PATH, 'templates'),
|
2015-01-05 15:01:42 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
STATICFILES_DIRS.insert(0, os.path.join(OPENSLIDES_USER_DATA_PATH, 'static'))
|
|
|
|
|
|
|
|
HAYSTACK_CONNECTIONS['default']['STORAGE'] = 'ram'
|
|
|
|
|
2014-01-11 15:47:15 +01:00
|
|
|
|
2015-01-05 15:01:42 +01:00
|
|
|
# Special test settings
|
|
|
|
# Use a faster password hasher.
|
2014-01-11 15:47:15 +01:00
|
|
|
|
2013-10-31 09:43:19 +01:00
|
|
|
PASSWORD_HASHERS = (
|
|
|
|
'django.contrib.auth.hashers.MD5PasswordHasher',
|
|
|
|
)
|