'openslides.core', 'openslides.users', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.staticfiles', 'rest_framework', 'channels', 'openslides.agenda', 'openslides.topics', 'openslides.motions', 'openslides.assignments', 'openslides.mediafiles', ] INSTALLED_PLUGINS = collect_plugins() # Adds all automaticly collected plugins MIDDLEWARE = [ 'django.middleware.security.SecurityMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.locale.LocaleMiddleware', 'django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware', 'openslides.utils.autoupdate.AutoupdateBundleMiddleware', ] ROOT_URLCONF = 'openslides.urls' ALLOWED_HOSTS = ['*']
) CACHES = { 'default': { 'BACKEND': 'django.core.cache.backends.locmem.LocMemCache', 'LOCATION': 'openslidecache' } } # Hosts/domain names that are valid for this site; required if DEBUG is False # See https://docs.djangoproject.com/en/1.5/ref/settings/#allowed-hosts ALLOWED_HOSTS = ['*'] # Adds all automaticly collected plugins INSTALLED_PLUGINS = collect_plugins() TEST_RUNNER = 'openslides.utils.test.OpenSlidesDiscoverRunner' # Config for the REST Framework REST_FRAMEWORK = { 'DEFAULT_AUTHENTICATION_CLASSES': ( 'rest_framework.authentication.SessionAuthentication', 'openslides.users.auth.RESTFrameworkAnonymousAuthentication', ) } # Config for channels CHANNEL_LAYERS = { 'default': { 'BACKEND': 'asgiref.inmemory.ChannelLayer',
# Hosts/domain names that are valid for this site; required if DEBUG is False # See https://docs.djangoproject.com/en/1.5/ref/settings/#allowed-hosts ALLOWED_HOSTS = ['*'] # Use Haystack with Whoosh for full text search HAYSTACK_CONNECTIONS = { 'default': { 'ENGINE': 'haystack.backends.whoosh_backend.WhooshEngine' }, } # Haystack updates search index after each save/delete action by apps HAYSTACK_SIGNAL_PROCESSOR = 'haystack.signals.RealtimeSignalProcessor' # Adds all automaticly collected plugins INSTALLED_PLUGINS = collect_plugins() # CKeditor settings CKEDITOR_DEFAULT_CONFIG = { 'toolbar': 'Full', 'bodyClass': 'ckeditor_html', 'allowedContent': 'h1 h2 h3 pre b i u strike em; ' # A workaround for the problem described in http://dev.ckeditor.com/ticket/10192 # Hopefully, the problem will be solved in the final version of CKEditor 4.1 # If so, then {margin-left} can be removed 'p{margin-left}; ' 'a[!href]; '