1 # -*- coding: utf-8 -*-
8 os.environ.get('ADMINS', '').split('\n')
15 os.environ.get('MANAGERS', os.environ.get('ADMINS', '')).split('\n')
20 if 'DB_NAME' in os.environ:
23 'ENGINE': 'django.db.backends.postgresql_psycopg2',
24 'NAME': os.environ['DB_NAME'],
25 'USER': os.environ.get('DB_USER', ''),
26 'PASSWORD': os.environ.get('DB_PASSWORD', ''),
27 'HOST': os.environ.get('DB_HOST', ''),
28 'PORT': os.environ.get('DB_PORT', ''),
36 'ENGINE': 'django.db.backends.sqlite3',
37 'NAME': '/app/var/dev.db',
42 DEBUG = os.environ.get('DEBUG', str(DEBUG)).lower() == 'true'
44 ALLOWED_HOSTS = os.environ.get('ALLOWED_HOSTS', '').split()
46 SERVER_EMAIL = os.environ.get('SERVER_EMAIL', 'no-reply@edukacjamedialna.edu.pl')
47 EMAIL_HOST = os.environ.get('EMAIL_HOST', 'localhost')
48 DEFAULT_FROM_EMAIL = os.environ.get('DEFAULT_FROM_EMAIL', 'no-reply@edukacjamedialna.edu.pl')
49 EMAIL_SUBJECT_PREFIX = os.environ.get('EMAIL_SUBJECT_PREFIX', '[EdukacjaMedialna.edu.pl] ')
51 PIWIK_URL = os.environ.get('PIWIK_URL', '')
52 PIWIK_SITE_ID = int(os.environ.get('PIWIK_SITE_ID', '0'))
53 SECRET_KEY = os.environ.get('SECRET_KEY', '')
55 MAILCHIMP_API_KEY = os.environ.get('MAILCHIMP_API_KEY', '')
56 MAILCHIMP_LIST_ID = os.environ.get('MAILCHIMP_LIST_ID', '')
57 MAILCHIMP_GROUP_ID = os.environ.get('MAILCHIMP_GROUP_ID', '')
60 FNPDJANGO_REALIP = True
61 FNPDJANGO_XACCEL = False
63 TEMPLATE_DEBUG = DEBUG
67 # List of callables that know how to import templates from various sources.
69 'django.template.loaders.filesystem.Loader',
70 'django.template.loaders.app_directories.Loader',
71 # 'django.template.loaders.eggs.Loader',
74 ROOT_URLCONF = 'edumed.urls'
76 SUBDOMAIN_URLCONFS = {
78 'katalog': 'edumed.milurls',
81 # Python dotted path to the WSGI application used by Django's runserver.
82 WSGI_APPLICATION = 'edumed.wsgi.application'
85 # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates".
86 # Always use forward slashes, even on Windows.
87 # Don't forget to use absolute paths, not relative paths.
91 EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'
92 ALLOWED_HOSTS = ALLOWED_HOSTS or ['*']
93 SECRET_KEY = SECRET_KEY or 'dev-secret-key'