From: Alex Kamedov Date: Sat, 23 Apr 2011 20:14:29 +0000 (+0600) Subject: allow URLs without trailing slashes: not all CAS clients follow redirects X-Git-Tag: 22.4~32^2~20^2~8 X-Git-Url: https://git.mdrn.pl/django-cas-provider.git/commitdiff_plain/a5c7eb28dded9330101e16c9bcdd720b17bf83e9?ds=sidebyside;hp=34cdae232d0d9a1b26133b7dd39ab484243d6493 allow URLs without trailing slashes: not all CAS clients follow redirects --- 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'), +)