From a5c7eb28dded9330101e16c9bcdd720b17bf83e9 Mon Sep 17 00:00:00 2001 From: Alex Kamedov Date: Sun, 24 Apr 2011 02:14:29 +0600 Subject: [PATCH] allow URLs without trailing slashes: not all CAS clients follow redirects --- cas_provider/urls.py | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/cas_provider/urls.py b/cas_provider/urls.py index 8edc91a..139988a 100644 --- a/cas_provider/urls.py +++ b/cas_provider/urls.py @@ -1,9 +1,8 @@ from django.conf.urls.defaults import * -from views import * -urlpatterns = patterns('', - url(r'^login/', login), - url(r'^validate/', validate), - url(r'^logout/', logout), -) \ No newline at end of file +urlpatterns = patterns('cas_provider.views', + url(r'^login/?$', 'login', name='cas_login'), + url(r'^validate/?$', 'validate', name='cas_validate'), + url(r'^logout/?$', 'logout', name='cas_logout'), +) -- 2.20.1