mirror of
https://github.com/haiwen/seahub.git
synced 2025-08-16 06:03:35 +00:00
15 lines
510 B
Python
Executable File
15 lines
510 B
Python
Executable File
from distutils.version import StrictVersion
|
|
import django
|
|
if StrictVersion(django.get_version()) < StrictVersion('1.4'):
|
|
from django.conf.urls.defaults import *
|
|
else:
|
|
from django.conf.urls import url
|
|
|
|
from views import ShibbolethView, ShibbolethLogoutView, ShibbolethLoginView
|
|
|
|
urlpatterns = [
|
|
url(r'^login/$', ShibbolethLoginView.as_view(), name='login'),
|
|
url(r'^logout/$', ShibbolethLogoutView.as_view(), name='logout'),
|
|
url(r'^$', ShibbolethView.as_view(), name='info'),
|
|
]
|