Other user aliases view.
[cas.git] / src / cas / settings.py
index 0c8ec90..4101776 100644 (file)
@@ -1,10 +1,8 @@
-# -*- coding: utf-8 -*-
 from os import path
 
 PROJECT_ROOT = path.realpath(path.dirname(__file__))
 
 DEBUG = True
 from os import path
 
 PROJECT_ROOT = path.realpath(path.dirname(__file__))
 
 DEBUG = True
-TEMPLATE_DEBUG = DEBUG
 
 ADMINS = [
 ]
 
 ADMINS = [
 ]
@@ -27,7 +25,7 @@ DATABASES = {
 # although not all choices may be available on all operating systems.
 # If running in a Windows environment this must be set to the same as your
 # system time zone.
 # although not all choices may be available on all operating systems.
 # If running in a Windows environment this must be set to the same as your
 # system time zone.
-TIME_ZONE = None
+TIME_ZONE = 'UTC'
 
 # Language code for this installation. All choices can be found here:
 # http://www.i18nguy.com/unicode/language-identifiers.html
 
 # Language code for this installation. All choices can be found here:
 # http://www.i18nguy.com/unicode/language-identifiers.html
@@ -57,39 +55,59 @@ STATICFILES_DIRS = [
 
 ROOT_URLCONF = 'cas.urls'
 
 
 ROOT_URLCONF = 'cas.urls'
 
-TEMPLATE_DIRS = (
-    PROJECT_ROOT + '/templates',
-)
+TEMPLATES = [
+    {
+        'BACKEND': 'django.template.backends.django.DjangoTemplates',
+        'APP_DIRS': True,
+        'DIRS': [
+            PROJECT_ROOT + '/templates',
+        ],
+        'OPTIONS': {
+            'context_processors': [
+                "django.contrib.auth.context_processors.auth",
+                "django.template.context_processors.debug",
+                "django.template.context_processors.i18n",
+                "django.template.context_processors.media",
+                "django.template.context_processors.static",
+                "django.template.context_processors.tz",
+                "django.contrib.messages.context_processors.messages",
+                "django.template.context_processors.request",
+            ],
+            'debug': DEBUG,
+        },
+    },
+]
 
 LOCALE_PATHS = (
     PROJECT_ROOT + '/locale',
 )
 
 INSTALLED_APPS = (
 
 LOCALE_PATHS = (
     PROJECT_ROOT + '/locale',
 )
 
 INSTALLED_APPS = (
+    'accounts.apps.AccountsConfig',
+    'emails.apps.EmailsConfig',
+    'services.apps.ServicesConfig',
+    'ssh_keys.apps.SshKeysConfig',
+
+    'cas_provider',
+    'django_gravatar',
+
     'django.contrib.auth',
     'django.contrib.contenttypes',
     'django.contrib.auth',
     'django.contrib.contenttypes',
+    'django.contrib.messages',
     'django.contrib.sessions',
     'django.contrib.sites',
     'django.contrib.admin',
     'django.contrib.admindocs',
     'django.contrib.staticfiles',
     'django.contrib.sessions',
     'django.contrib.sites',
     'django.contrib.admin',
     'django.contrib.admindocs',
     'django.contrib.staticfiles',
-
-    'cas_provider',
-    'django_gravatar',
-    'south',
-
-    'accounts',
 )
 
 )
 
-TEMPLATE_CONTEXT_PROCESSORS = (
-    "django.contrib.auth.context_processors.auth",
-    "django.core.context_processors.debug",
-    "django.core.context_processors.i18n",
-    "django.core.context_processors.media",
-    "django.core.context_processors.static",
-    "django.core.context_processors.tz",
-    "django.contrib.messages.context_processors.messages",
-    "django.core.context_processors.request",
+MIDDLEWARE = (
+    'django.contrib.sessions.middleware.SessionMiddleware',
+    'django.middleware.common.CommonMiddleware',
+    'django.middleware.csrf.CsrfViewMiddleware',
+    'django.contrib.auth.middleware.AuthenticationMiddleware',
+    'django.contrib.messages.middleware.MessageMiddleware',
+    'django.middleware.clickjacking.XFrameOptionsMiddleware',
 )
 
 # django-cas-provider settings
 )
 
 # django-cas-provider settings
@@ -102,8 +120,10 @@ SESSION_COOKIE_NAME = 'fnpcas'
 GRAVATAR_DEFAULT_IMAGE = 'mm'
 GRAVATAR_URL_PREFIX = 'https://www.gravatar.com/'
 
 GRAVATAR_DEFAULT_IMAGE = 'mm'
 GRAVATAR_URL_PREFIX = 'https://www.gravatar.com/'
 
+SITE_TITLE = 'Fundacja Nowoczesna Polska'
+
 # Import localsettings file, which may override settings defined here
 try:
 # Import localsettings file, which may override settings defined here
 try:
-    from localsettings import *
+    from .localsettings import *
 except ImportError:
     pass
 except ImportError:
     pass