2013-03-14 22:18:56 +01:00
|
|
|
# -*- coding: utf-8 -*-
|
2013-10-28 16:34:53 +01:00
|
|
|
#
|
|
|
|
# Settings file for OpenSlides' tests
|
|
|
|
#
|
2013-03-14 22:18:56 +01:00
|
|
|
|
2013-10-16 23:57:29 +02:00
|
|
|
|
2013-09-25 10:01:01 +02:00
|
|
|
from openslides.global_settings import * # noqa
|
2013-03-14 22:18:56 +01:00
|
|
|
|
2013-10-28 16:34:53 +01:00
|
|
|
# Use 'DEBUG = True' to get more details for server errors. Default for releases: False
|
2013-03-14 22:18:56 +01:00
|
|
|
DEBUG = True
|
|
|
|
TEMPLATE_DEBUG = DEBUG
|
|
|
|
|
|
|
|
DATABASES = {
|
|
|
|
'default': {
|
|
|
|
'ENGINE': 'django.db.backends.sqlite3',
|
2013-10-28 16:34:53 +01:00
|
|
|
'NAME': '',
|
2013-03-14 22:18:56 +01:00
|
|
|
'USER': '',
|
|
|
|
'PASSWORD': '',
|
|
|
|
'HOST': '',
|
|
|
|
'PORT': '',
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
# Set timezone
|
|
|
|
TIME_ZONE = 'Europe/Berlin'
|
|
|
|
|
|
|
|
# Make this unique, and don't share it with anybody.
|
|
|
|
SECRET_KEY = 'secred'
|
|
|
|
|
|
|
|
# Add OpenSlides plugins to this list (see example entry in comment)
|
|
|
|
INSTALLED_PLUGINS = (
|
|
|
|
'tests.person_api',
|
|
|
|
)
|
|
|
|
|
|
|
|
INSTALLED_APPS += INSTALLED_PLUGINS
|
2013-03-18 21:50:50 +01:00
|
|
|
|
|
|
|
# Absolute path to the directory that holds media.
|
|
|
|
# Example: "/home/media/media.lawrence.com/"
|
2013-10-16 23:57:29 +02:00
|
|
|
MEDIA_ROOT = os.path.realpath(os.path.dirname(__file__))
|
2013-09-08 14:44:41 +02:00
|
|
|
|
2013-10-28 16:34:53 +01:00
|
|
|
# Path to Whoosh search index
|
|
|
|
# Use RAM storage
|
2013-09-08 14:44:41 +02:00
|
|
|
HAYSTACK_CONNECTIONS['default']['STORAGE'] = 'ram'
|
2013-10-31 09:43:19 +01:00
|
|
|
|
|
|
|
# Use a faster passwort hasher
|
|
|
|
PASSWORD_HASHERS = (
|
|
|
|
'django.contrib.auth.hashers.MD5PasswordHasher',
|
|
|
|
)
|