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
|
|
|
|
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
|
|
|
|
OPENSLIDES_USER_DATA_PATH = os.path.realpath(os.path.dirname(__file__))
|
|
|
|
|
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
|
|
|
|
|
2014-01-11 15:47:15 +01:00
|
|
|
# Make this unique, and don't share it with anybody.
|
|
|
|
SECRET_KEY = 'secred'
|
|
|
|
|
|
|
|
# Database settings. Change this to use MySQL or PostgreSQL
|
2013-03-14 22:18:56 +01:00
|
|
|
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': '',
|
2014-01-11 15:47:15 +01:00
|
|
|
'PORT': ''}}
|
2013-03-14 22:18:56 +01:00
|
|
|
|
2014-01-11 15:47:15 +01:00
|
|
|
# Add OpenSlides plugins to this list
|
2013-03-14 22:18:56 +01:00
|
|
|
INSTALLED_PLUGINS = (
|
|
|
|
'tests.person_api',
|
|
|
|
)
|
|
|
|
|
|
|
|
INSTALLED_APPS += INSTALLED_PLUGINS
|
2013-03-18 21:50:50 +01:00
|
|
|
|
2014-01-11 15:47:15 +01:00
|
|
|
# Some other settings
|
|
|
|
TIME_ZONE = 'Europe/Berlin'
|
|
|
|
|
|
|
|
MEDIA_ROOT = os.path.join(OPENSLIDES_USER_DATA_PATH, '')
|
2013-09-08 14:44:41 +02:00
|
|
|
|
|
|
|
HAYSTACK_CONNECTIONS['default']['STORAGE'] = 'ram'
|
2013-10-31 09:43:19 +01:00
|
|
|
|
2014-01-11 15:47:15 +01:00
|
|
|
TEMPLATE_DIRS = (
|
|
|
|
os.path.join(OPENSLIDES_USER_DATA_PATH, 'templates'),
|
|
|
|
filesystem2unicode(os.path.join(SITE_ROOT, 'templates')))
|
|
|
|
|
|
|
|
STATICFILES_DIRS = (
|
|
|
|
os.path.join(OPENSLIDES_USER_DATA_PATH, 'static'),
|
|
|
|
filesystem2unicode(os.path.join(SITE_ROOT, 'static')))
|
|
|
|
|
2013-10-31 09:43:19 +01:00
|
|
|
# Use a faster passwort hasher
|
|
|
|
PASSWORD_HASHERS = (
|
|
|
|
'django.contrib.auth.hashers.MD5PasswordHasher',
|
|
|
|
)
|