Commit 620b5269 authored by Daniel W Bond's avatar Daniel W Bond
Browse files

installed guardian

parent 12a2e94d
Django==1.7
Django==1.7.3
argparse==1.2.1
django-allauth==0.19.0
django-autoslug==1.7.2
......@@ -6,6 +6,7 @@ django-braces==1.4.0
django-crispy-forms==1.4.0
git+https://github.com/the-ben-waters/django-cas.git
django-gravatar2==1.1.4
django-guardian==1.2.5
django-localflavor==1.0
django-model-utils==2.2
oauthlib==0.7.2
......
......@@ -62,11 +62,14 @@ INSTALLED_APPS = (
'django.contrib.messages',
'django.contrib.staticfiles',
'django.contrib.sites',
# apps
'api',
'housing',
'accounts',
# packages
'crispy_forms',
'django_gravatar',
'guardian',
'allauth',
'allauth.account',
'allauth.socialaccount',
......@@ -133,9 +136,12 @@ ACCOUNT_ADAPTER = 'accounts.adapter.AccountAdapter'
AUTHENTICATION_BACKENDS = (
'django.contrib.auth.backends.ModelBackend',
'guardian.backends.ObjectPermissionBackend',
'cas.backends.CASBackend',
)
ANONYMOUS_USER_ID = None
CAS_SERVER_URL = 'https://login.gmu.edu'
CAS_LOGOUT_COMPLETELY = True
CAS_PROVIDE_URL_TO_LOGOUT = True
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment