From 32cad0f6194605b4a8e881397665769e90173732 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C5=81ukasz=20Rekucki?= Date: Fri, 5 Mar 2010 13:49:20 +0100 Subject: [PATCH] Deleted cas_consumer --- platforma/localsettings.sample | 22 +--------------------- platforma/settings.py | 2 ++ requirements.txt | 1 - 3 files changed, 3 insertions(+), 22 deletions(-) diff --git a/platforma/localsettings.sample b/platforma/localsettings.sample index 687af159..c174cf92 100644 --- a/platforma/localsettings.sample +++ b/platforma/localsettings.sample @@ -14,25 +14,5 @@ REPOSITORY_PATH = '/home/user/repository' # Subdirectory of STATIC_ROOT containing images IMAGE_DIR = 'images' -# Authentication via Central Authentication Server -INSTALLED_APPS = ( - 'django.contrib.auth', - 'django.contrib.contenttypes', - 'django.contrib.sessions', - 'django.contrib.sites', - 'django.contrib.admin', - 'django.contrib.admindocs', - - 'cas_consumer', - 'explorer', - 'toolbar', - 'api', -) - -AUTHENTICATION_BACKENDS = ( - 'cas_consumer.backends.CASBackend', -) - -CAS_BASE = 'http://localhost:7000/' -CAS_SERVICE = 'http://localhost:8000/accounts/login/' +CAS_SERVICE_URL = 'http://stigma.nowoczesnapolska.org.pl/cas/' diff --git a/platforma/settings.py b/platforma/settings.py index c7898e89..83456f8d 100755 --- a/platforma/settings.py +++ b/platforma/settings.py @@ -78,8 +78,10 @@ TEMPLATE_CONTEXT_PROCESSORS = ( MIDDLEWARE_CLASSES = ( 'django.middleware.common.CommonMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', + 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django_cas.middleware.CASMiddleware', + 'django.middleware.doc.XViewMiddleware', 'maintenancemode.middleware.MaintenanceModeMiddleware', ) diff --git a/requirements.txt b/requirements.txt index 076171b0..8776773b 100644 --- a/requirements.txt +++ b/requirements.txt @@ -4,7 +4,6 @@ Django==1.1.1 lxml>=2.2,<2.3 mercurial==1.3.1 librarian>=1.3.dev,<1.4 -django-cas-consumer==0.1dev PyYAML>=3.0 MySQL-python>=1.2,<2.0 django-nose>=0.0.3 -- 2.20.1