1 # -*- coding: utf-8 -*-
4 PROJECT_ROOT = path.realpath(path.dirname(__file__))
15 'ENGINE': 'django.db.backends.sqlite3', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
16 'NAME': path.join(PROJECT_ROOT, 'dev.sqlite'), # Or path to database file if using sqlite3.
17 'USER': '', # Not used with sqlite3.
18 'PASSWORD': '', # Not used with sqlite3.
19 'HOST': '', # Set to empty string for localhost. Not used with sqlite3.
20 'PORT': '', # Set to empty string for default. Not used with sqlite3.
24 # Local time zone for this installation. Choices can be found here:
25 # http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
26 # although not all choices may be available on all operating systems.
27 # If running in a Windows environment this must be set to the same as your
31 # Language code for this installation. All choices can be found here:
32 # http://www.i18nguy.com/unicode/language-identifiers.html
37 # If you set this to False, Django will make some optimizations so as not
38 # to load the internationalization machinery.
41 # Absolute path to the directory that holds media.
42 # Example: "/home/media/media.lawrence.com/"
43 MEDIA_ROOT = path.join(PROJECT_ROOT, '../../media/')
45 # URL that handles the media served from MEDIA_ROOT. Make sure to use a
46 # trailing slash if there is a path component (optional in other cases).
47 # Examples: "http://media.lawrence.com", "http://example.com/media/"
50 STATIC_ROOT = path.join(PROJECT_ROOT, '../../static/')
51 STATIC_URL = '/static/'
54 path.join(PROJECT_ROOT, 'static'),
57 ROOT_URLCONF = 'cas.urls'
61 'BACKEND': 'django.template.backends.django.DjangoTemplates',
64 PROJECT_ROOT + '/templates',
67 'context_processors': [
68 "django.contrib.auth.context_processors.auth",
69 "django.template.context_processors.debug",
70 "django.template.context_processors.i18n",
71 "django.template.context_processors.media",
72 "django.template.context_processors.static",
73 "django.template.context_processors.tz",
74 "django.contrib.messages.context_processors.messages",
75 "django.template.context_processors.request",
83 PROJECT_ROOT + '/locale',
87 'django.contrib.auth',
88 'django.contrib.contenttypes',
89 'django.contrib.sessions',
90 'django.contrib.sites',
91 'django.contrib.admin',
92 'django.contrib.admindocs',
93 'django.contrib.staticfiles',
102 'django.contrib.sessions.middleware.SessionMiddleware',
103 'django.middleware.common.CommonMiddleware',
104 'django.middleware.csrf.CsrfViewMiddleware',
105 'django.contrib.auth.middleware.AuthenticationMiddleware',
106 'django.contrib.messages.middleware.MessageMiddleware',
107 'django.middleware.clickjacking.XFrameOptionsMiddleware',
110 # django-cas-provider settings
111 LOGIN_URL = '/cas/login/'
112 LOGOUT_URL = '/cas/logout/'
113 LOGIN_REDIRECT_URL = '/accounts/'
114 CAS_CUSTOM_ATTRIBUTES_CALLBACK = 'cas.utils.custom_attributes_callback'
115 SESSION_COOKIE_NAME = 'fnpcas'
117 GRAVATAR_DEFAULT_IMAGE = 'mm'
118 GRAVATAR_URL_PREFIX = 'https://www.gravatar.com/'
120 # Import localsettings file, which may override settings defined here
122 from .localsettings import *