fixing CAS integration

0 views
Skip to first unread message

John Milner

unread,
Jul 27, 2012, 3:48:30 PM7/27/12
to student-worker-relational-database-dev
The version of django-cas that pip gets is too old and doesn't work with Django 1.4: http://code.google.com/p/django-cas/issues/detail?id=14&q=1.4

There's a new version available here: https://bitbucket.org/cpcc/django-cas/downloads
I downloaded 2.1.1 ("tip") on sis.cristoreyny.org and installed it.

Finally, to make CAS work, I needed to add:
        'django.contrib.messages.middleware.MessageMiddleware',
to crny/settings_local.py below line 94-95, "if CAS: MIDDLEWARE_CLASSES = (".

This middleware is already included in ecwsp/settings.py. Why does settings_local have MIDDLEWARE_CLASSES = stuff and then right below MIDDLEWARE_CLASSES += more stuff? Does += by itself not just add to what's in settings.py already?
Reply all
Reply to author
Forward
0 new messages