OpenSlides/tests/settings.py

54 lines
1.3 KiB
Python
Raw Normal View History

#
# Settings file for OpenSlides' tests
#
2013-03-14 22:18:56 +01:00
import os
from openslides.global_settings import * # noqa
2013-03-14 22:18:56 +01:00
# Path to the directory for user specific data files
OPENSLIDES_USER_DATA_PATH = os.path.realpath(os.path.dirname(__file__))
# 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
# 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',
'NAME': '',
2013-03-14 22:18:56 +01:00
'USER': '',
'PASSWORD': '',
'HOST': '',
'PORT': ''}}
2013-03-14 22:18:56 +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
# Some other settings
TIME_ZONE = 'Europe/Berlin'
MEDIA_ROOT = os.path.join(OPENSLIDES_USER_DATA_PATH, '')
HAYSTACK_CONNECTIONS['default']['STORAGE'] = 'ram'
2013-10-31 09:43:19 +01:00
TEMPLATE_DIRS = (
os.path.join(OPENSLIDES_USER_DATA_PATH, 'templates'),
os.path.join(SITE_ROOT, 'templates'))
STATICFILES_DIRS = (
os.path.join(OPENSLIDES_USER_DATA_PATH, 'static'),
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',
)