2013-10-28 16:34:53 +01:00
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
#
|
|
|
|
# Settings file for OpenSlides
|
|
|
|
#
|
|
|
|
|
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
|
|
|
|
# Path to the directory for user specific data files
|
|
|
|
OPENSLIDES_USER_DATA_PATH = %(openslides_user_data_path)s
|
2013-10-28 16:34:53 +01:00
|
|
|
|
|
|
|
# Use 'DEBUG = True' to get more details for server errors. Default for releases: False
|
|
|
|
DEBUG = %(debug)s
|
|
|
|
TEMPLATE_DEBUG = DEBUG
|
|
|
|
|
2014-01-11 15:47:15 +01:00
|
|
|
# Make this unique, and don't share it with anybody.
|
|
|
|
SECRET_KEY = %(secret_key)r
|
|
|
|
|
|
|
|
# Database settings. Change this to use MySQL or PostgreSQL
|
2013-10-28 16:34:53 +01:00
|
|
|
DATABASES = {
|
|
|
|
'default': {
|
|
|
|
'ENGINE': 'django.db.backends.sqlite3',
|
2014-01-11 15:47:15 +01:00
|
|
|
'NAME': os.path.join(OPENSLIDES_USER_DATA_PATH, 'database.sqlite'),
|
2013-10-28 16:34:53 +01:00
|
|
|
'USER': '',
|
|
|
|
'PASSWORD': '',
|
|
|
|
'HOST': '',
|
2014-01-11 15:47:15 +01:00
|
|
|
'PORT': ''}}
|
2013-10-28 16:34:53 +01:00
|
|
|
|
|
|
|
# Add OpenSlides plugins to this list (see example entry in comment)
|
2013-12-12 21:22:42 +01:00
|
|
|
INSTALLED_PLUGINS += (
|
2013-10-28 16:34:53 +01:00
|
|
|
# 'pluginname',
|
|
|
|
)
|
|
|
|
|
|
|
|
INSTALLED_APPS += INSTALLED_PLUGINS
|
|
|
|
|
2014-01-11 15:47:15 +01:00
|
|
|
# Some other settings
|
|
|
|
TIME_ZONE = 'Europe/Berlin'
|
|
|
|
|
|
|
|
MEDIA_ROOT = os.path.join(OPENSLIDES_USER_DATA_PATH, 'media', '')
|
|
|
|
|
|
|
|
HAYSTACK_CONNECTIONS['default']['PATH'] = os.path.join(OPENSLIDES_USER_DATA_PATH, 'whoosh_index', '')
|
|
|
|
|
|
|
|
TEMPLATE_DIRS = (
|
|
|
|
os.path.join(OPENSLIDES_USER_DATA_PATH, 'templates'),
|
2014-08-16 09:25:18 +02:00
|
|
|
os.path.join(SITE_ROOT, 'templates'))
|
2013-10-28 16:34:53 +01:00
|
|
|
|
2014-01-11 15:47:15 +01:00
|
|
|
STATICFILES_DIRS = (
|
|
|
|
os.path.join(OPENSLIDES_USER_DATA_PATH, 'static'),
|
2014-08-16 09:25:18 +02:00
|
|
|
os.path.join(SITE_ROOT, 'static'))
|