3 PROJECT_ROOT = path.realpath(path.dirname(__file__))
14 'ENGINE': 'django.db.backends.sqlite3', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
15 'NAME': path.join(PROJECT_ROOT, 'dev.sqlite'), # Or path to database file if using sqlite3.
16 'USER': '', # Not used with sqlite3.
17 'PASSWORD': '', # Not used with sqlite3.
18 'HOST': '', # Set to empty string for localhost. Not used with sqlite3.
19 'PORT': '', # Set to empty string for default. Not used with sqlite3.
23 # Local time zone for this installation. Choices can be found here:
24 # http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
25 # although not all choices may be available on all operating systems.
26 # If running in a Windows environment this must be set to the same as your
30 # Language code for this installation. All choices can be found here:
31 # http://www.i18nguy.com/unicode/language-identifiers.html
36 # If you set this to False, Django will make some optimizations so as not
37 # to load the internationalization machinery.
40 # Absolute path to the directory that holds media.
41 # Example: "/home/media/media.lawrence.com/"
42 MEDIA_ROOT = path.join(PROJECT_ROOT, '../../media/')
44 # URL that handles the media served from MEDIA_ROOT. Make sure to use a
45 # trailing slash if there is a path component (optional in other cases).
46 # Examples: "http://media.lawrence.com", "http://example.com/media/"
49 STATIC_ROOT = path.join(PROJECT_ROOT, '../../static/')
50 STATIC_URL = '/static/'
53 path.join(PROJECT_ROOT, 'static'),
56 ROOT_URLCONF = 'cas.urls'
60 'BACKEND': 'django.template.backends.django.DjangoTemplates',
63 PROJECT_ROOT + '/templates',
66 'context_processors': [
67 "django.contrib.auth.context_processors.auth",
68 "django.template.context_processors.debug",
69 "django.template.context_processors.i18n",
70 "django.template.context_processors.media",
71 "django.template.context_processors.static",
72 "django.template.context_processors.tz",
73 "django.contrib.messages.context_processors.messages",
74 "django.template.context_processors.request",
82 PROJECT_ROOT + '/locale',
86 'accounts.apps.AccountsConfig',
87 'services.apps.ServicesConfig',
88 'ssh_keys.apps.SshKeysConfig',
93 'django.contrib.auth',
94 'django.contrib.contenttypes',
95 'django.contrib.sessions',
96 'django.contrib.sites',
97 'django.contrib.admin',
98 'django.contrib.admindocs',
99 'django.contrib.staticfiles',
103 'django.contrib.sessions.middleware.SessionMiddleware',
104 'django.middleware.common.CommonMiddleware',
105 'django.middleware.csrf.CsrfViewMiddleware',
106 'django.contrib.auth.middleware.AuthenticationMiddleware',
107 'django.contrib.messages.middleware.MessageMiddleware',
108 'django.middleware.clickjacking.XFrameOptionsMiddleware',
111 # django-cas-provider settings
112 LOGIN_URL = '/cas/login/'
113 LOGOUT_URL = '/cas/logout/'
114 LOGIN_REDIRECT_URL = '/accounts/'
115 CAS_CUSTOM_ATTRIBUTES_CALLBACK = 'cas.utils.custom_attributes_callback'
116 SESSION_COOKIE_NAME = 'fnpcas'
118 GRAVATAR_DEFAULT_IMAGE = 'mm'
119 GRAVATAR_URL_PREFIX = 'https://www.gravatar.com/'
121 # Import localsettings file, which may override settings defined here
123 from .localsettings import *