Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SRCT
roomlist
Commits
bf255eaf
Commit
bf255eaf
authored
Jan 09, 2015
by
Daniel W Bond
Browse files
added gmucas middleware and variables
parent
0d7022fd
Changes
1
Hide whitespace changes
Inline
Side-by-side
roomlist/settings/settings.py
View file @
bf255eaf
"""
Django settings for
django_projec
t project.
Django settings for
roomlis
t project.
For more information on this file, see
https://docs.djangoproject.com/en/1.
6
/topics/settings/
https://docs.djangoproject.com/en/1.
7
/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.
6
/ref/settings/
https://docs.djangoproject.com/en/1.
7
/ref/settings/
"""
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
...
...
@@ -42,7 +42,7 @@ TEMPLATE_CONTEXT_PROCESSORS = (
)
# Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/1.
6
/howto/deployment/checklist/
# See https://docs.djangoproject.com/en/1.
7
/howto/deployment/checklist/
# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY
=
'fGTL0pyk8MRq9YLXIOzFKZlneTdg3etdRxXs1FN2FqlVk595Ix'
...
...
@@ -74,10 +74,13 @@ INSTALLED_APPS = (
CRISPY_TEMPLATE_PACK
=
'bootstrap'
MIDDLEWARE_CLASSES
=
(
'django.contrib.sessions.middleware.SessionMiddleware'
,
'django.middleware.common.CommonMiddleware'
,
'django.
middleware.csrf.CsrfView
Middleware'
,
'django.
contrib.sessions.middleware.Session
Middleware'
,
'django.contrib.auth.middleware.AuthenticationMiddleware'
,
'django_gmucas.middleware.CASMiddleware'
,
'django.middleware.doc.XViewMiddleware'
,
'django.middleware.csrf.CsrfViewMiddleware'
,
'django.contrib.messages.middleware.MessageMiddleware'
,
'django.middleware.clickjacking.XFrameOptionsMiddleware'
,
)
...
...
@@ -88,7 +91,7 @@ WSGI_APPLICATION = 'settings.wsgi.application'
# Database
# https://docs.djangoproject.com/en/1.
6
/ref/settings/#databases
# https://docs.djangoproject.com/en/1.
7
/ref/settings/#databases
DATABASES
=
{
'default'
:
{
...
...
@@ -102,7 +105,7 @@ DATABASES = {
}
# Internationalization
# https://docs.djangoproject.com/en/1.
6
/topics/i18n/
# https://docs.djangoproject.com/en/1.
7
/topics/i18n/
LANGUAGE_CODE
=
'en-us'
...
...
@@ -114,8 +117,16 @@ USE_L10N = True
USE_TZ
=
True
# Static files (CSS, JavaScript, Images)
# https://docs.djangoproject.com/en/1.
6
/howto/static-files/
# https://docs.djangoproject.com/en/1.
7
/howto/static-files/
STATIC_URL
=
'/static/'
AUTHENTICATION_BACKENDS
=
(
'django.contrib.auth.backends.ModelBackend'
,
'django_gmucas.backends.CASBackend'
,
)
CAS_SERVER_URL
=
'login.gmu.edu'
CAS_LOGOUT_COMPLETELY
=
True
CAS_PROVIDE_URL_TO_LOGOUT
=
True
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment