forked from castlabs/django-cas
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from hzdg/python3_django1_11
Add Python 3 and Django 1.10+ compatibility
- Loading branch information
Showing
7 changed files
with
25 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,14 @@ | ||
__author__ = 'sannies' | ||
|
||
from django.conf.urls.defaults import patterns, url | ||
|
||
|
||
urlpatterns = patterns('django_cas.views', | ||
url(r'^login$', "login", name="cas_login"), | ||
url(r'^logout$', "logout", name="cas_logout"), | ||
url(r'^proxycallback$', "proxy_callback", name="cas_proxy_callback"), | ||
|
||
) | ||
try: | ||
from django.conf.urls.defaults import url | ||
except ImportError: | ||
from django.conf.urls import url | ||
|
||
from .views import login, logout, proxy_callback | ||
|
||
urlpatterns = [ | ||
url(r'^login$', login, name="cas_login"), | ||
url(r'^logout$', logout, name="cas_logout"), | ||
url(r'^proxycallback$', proxy_callback, name="cas_proxy_callback"), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters