2017-03-13 15:59:47 +00:00
|
|
|
import os
|
|
|
|
from puput import PUPUT_APPS
|
2017-07-03 14:23:20 +00:00
|
|
|
from feedler import FEEDLER_APPS
|
2017-03-13 15:59:47 +00:00
|
|
|
|
|
|
|
WAGTAIL_SITE_NAME = 'Public Health'
|
|
|
|
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
|
|
|
|
SECRET_KEY = 'changemepliz'
|
|
|
|
DEBUG = True
|
|
|
|
ALLOWED_HOSTS = "*"
|
|
|
|
|
|
|
|
INSTALLED_APPS = (
|
|
|
|
'django.contrib.admin',
|
|
|
|
'django.contrib.auth',
|
|
|
|
'django.contrib.contenttypes',
|
|
|
|
'django.contrib.sessions',
|
|
|
|
'django.contrib.messages',
|
|
|
|
'django.contrib.staticfiles',
|
|
|
|
)
|
|
|
|
INSTALLED_APPS += PUPUT_APPS
|
2017-07-03 14:23:20 +00:00
|
|
|
INSTALLED_APPS += FEEDLER_APPS
|
2017-03-13 15:59:47 +00:00
|
|
|
|
|
|
|
MIDDLEWARE_CLASSES = (
|
|
|
|
'django.contrib.sessions.middleware.SessionMiddleware',
|
|
|
|
'django.middleware.common.CommonMiddleware',
|
|
|
|
'django.middleware.csrf.CsrfViewMiddleware',
|
|
|
|
'django.contrib.auth.middleware.AuthenticationMiddleware',
|
|
|
|
'django.contrib.auth.middleware.SessionAuthenticationMiddleware',
|
|
|
|
'django.contrib.messages.middleware.MessageMiddleware',
|
|
|
|
'django.middleware.clickjacking.XFrameOptionsMiddleware',
|
|
|
|
'django.middleware.security.SecurityMiddleware',
|
|
|
|
'wagtail.wagtailcore.middleware.SiteMiddleware',
|
|
|
|
'wagtail.wagtailredirects.middleware.RedirectMiddleware',
|
|
|
|
)
|
|
|
|
|
|
|
|
ROOT_URLCONF = 'tests.testapp.urls'
|
|
|
|
|
|
|
|
TEMPLATES = [
|
|
|
|
{
|
|
|
|
'BACKEND': 'django.template.backends.django.DjangoTemplates',
|
|
|
|
'DIRS': [],
|
|
|
|
'APP_DIRS': True,
|
|
|
|
'OPTIONS': {
|
|
|
|
'context_processors': [
|
|
|
|
'django.template.context_processors.debug',
|
|
|
|
'django.template.context_processors.request',
|
|
|
|
'django.contrib.auth.context_processors.auth',
|
|
|
|
'django.contrib.messages.context_processors.messages',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
]
|
|
|
|
|
|
|
|
WSGI_APPLICATION = 'tests.testapp.wsgi.application'
|
|
|
|
|
|
|
|
DATABASES = {
|
|
|
|
'default': {
|
|
|
|
'ENGINE': 'django.db.backends.sqlite3',
|
|
|
|
'NAME': 'tests/testapp/publichealth.db',
|
|
|
|
'USER': '',
|
|
|
|
'PASSWORD': '',
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
LANGUAGE_CODE = 'de-ch'
|
|
|
|
TIME_ZONE = 'UTC'
|
|
|
|
USE_I18N = True
|
|
|
|
USE_L10N = True
|
|
|
|
USE_TZ = True
|
|
|
|
|
|
|
|
STATIC_ROOT = '/tmp/static'
|
|
|
|
STATIC_URL = '/static/'
|
|
|
|
MEDIA_ROOT = '/tmp/media'
|
|
|
|
MEDIA_URL = '/media/'
|