1 # -*- coding: utf-8 -*-
4 PROJECT_ROOT = path.realpath(path.dirname(__file__))
16 'ENGINE': 'django.db.backends.sqlite3', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
17 'NAME': path.join(PROJECT_ROOT, 'dev.sqlite'), # Or path to database file if using sqlite3.
18 'USER': '', # Not used with sqlite3.
19 'PASSWORD': '', # Not used with sqlite3.
20 'HOST': '', # Set to empty string for localhost. Not used with sqlite3.
21 'PORT': '', # Set to empty string for default. Not used with sqlite3.
25 # Local time zone for this installation. Choices can be found here:
26 # http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
27 # although not all choices may be available on all operating systems.
28 # If running in a Windows environment this must be set to the same as your
32 # Language code for this installation. All choices can be found here:
33 # http://www.i18nguy.com/unicode/language-identifiers.html
38 # If you set this to False, Django will make some optimizations so as not
39 # to load the internationalization machinery.
42 # Absolute path to the directory that holds media.
43 # Example: "/home/media/media.lawrence.com/"
44 MEDIA_ROOT = path.join(PROJECT_ROOT, '../../media/')
46 # URL that handles the media served from MEDIA_ROOT. Make sure to use a
47 # trailing slash if there is a path component (optional in other cases).
48 # Examples: "http://media.lawrence.com", "http://example.com/media/"
51 STATIC_ROOT = path.join(PROJECT_ROOT, '../../static/')
52 STATIC_URL = '/static/'
55 path.join(PROJECT_ROOT, 'static'),
58 ROOT_URLCONF = 'cas.urls'
61 PROJECT_ROOT + '/templates',
65 PROJECT_ROOT + '/locale',
69 'django.contrib.auth',
70 'django.contrib.contenttypes',
71 'django.contrib.sessions',
72 'django.contrib.sites',
73 'django.contrib.admin',
74 'django.contrib.admindocs',
75 'django.contrib.staticfiles',
84 TEMPLATE_CONTEXT_PROCESSORS = (
85 "django.contrib.auth.context_processors.auth",
86 "django.core.context_processors.debug",
87 "django.core.context_processors.i18n",
88 "django.core.context_processors.media",
89 "django.core.context_processors.static",
90 "django.core.context_processors.tz",
91 "django.contrib.messages.context_processors.messages",
92 "django.core.context_processors.request",
95 # django-cas-provider settings
96 LOGIN_URL = '/cas/login/'
97 LOGOUT_URL = '/cas/logout/'
98 LOGIN_REDIRECT_URL = '/accounts/'
99 CAS_CUSTOM_ATTRIBUTES_CALLBACK = 'cas.utils.custom_attributes_callback'
100 SESSION_COOKIE_NAME = 'fnpcas'
102 GRAVATAR_DEFAULT_IMAGE = 'mm'
103 GRAVATAR_URL_PREFIX = 'https://www.gravatar.com/'
105 # Import localsettings file, which may override settings defined here
107 from localsettings import *