2015-01-05 15:01:42 +01:00
|
|
|
"""
|
|
|
|
Settings file for OpenSlides
|
|
|
|
|
|
|
|
For more information on this file, see
|
|
|
|
https://docs.djangoproject.com/en/1.7/topics/settings/
|
|
|
|
|
|
|
|
For the full list of settings and their values, see
|
|
|
|
https://docs.djangoproject.com/en/1.7/ref/settings/
|
|
|
|
"""
|
2013-10-28 16:34:53 +01:00
|
|
|
|
2014-01-11 15:47:15 +01:00
|
|
|
import os
|
2013-10-28 16:34:53 +01:00
|
|
|
from openslides.global_settings import *
|
2014-01-11 15:47:15 +01:00
|
|
|
%(import_function)s
|
2015-01-05 15:01:42 +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 = %(openslides_user_data_path)s
|
2013-10-28 16:34:53 +01:00
|
|
|
|
|
|
|
|
2015-01-05 15:01:42 +01:00
|
|
|
# SECURITY WARNING: Keep the secret key used in production secret!
|
|
|
|
|
2014-01-11 15:47:15 +01:00
|
|
|
SECRET_KEY = %(secret_key)r
|
|
|
|
|
2013-10-28 16:34:53 +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!
|
|
|
|
|
2015-01-16 14:18:34 +01:00
|
|
|
DEBUG = %(debug)s
|
2015-01-05 15:01:42 +01:00
|
|
|
TEMPLATE_DEBUG = DEBUG
|
|
|
|
|
|
|
|
|
|
|
|
# OpenSlides plugins
|
|
|
|
# Add plugins to this list (see example entry in comment).
|
|
|
|
|
2013-12-12 21:22:42 +01:00
|
|
|
INSTALLED_PLUGINS += (
|
2016-05-17 14:15:22 +02:00
|
|
|
# 'plugin_module_name',
|
2013-10-28 16:34:53 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
INSTALLED_APPS += INSTALLED_PLUGINS
|
|
|
|
|
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': os.path.join(OPENSLIDES_USER_DATA_PATH, 'database.sqlite')
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
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, 'media', '')
|
|
|
|
|
|
|
|
TEMPLATE_DIRS = (
|
|
|
|
os.path.join(OPENSLIDES_USER_DATA_PATH, 'templates'),
|
2015-01-05 15:01:42 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
STATICFILES_DIRS = [os.path.join(OPENSLIDES_USER_DATA_PATH, 'static')] + STATICFILES_DIRS
|
2013-10-28 16:34:53 +01:00
|
|
|
|
2016-01-03 15:33:51 +01:00
|
|
|
|
|
|
|
SEARCH_INDEX = os.path.join(OPENSLIDES_USER_DATA_PATH, 'search_index')
|