2017-02-23 00:31:08 +01:00
|
|
|
from django.conf.urls import url
|
2017-02-12 14:14:08 +01:00
|
|
|
from django.views.generic.base import TemplateView
|
|
|
|
from django.contrib.auth import views as django_views
|
|
|
|
from django_cas_ng import views as django_cas_views
|
2017-02-10 23:12:12 +01:00
|
|
|
|
|
|
|
from . import views
|
|
|
|
|
2017-02-23 00:31:08 +01:00
|
|
|
app_name = "gestion"
|
2017-02-10 23:12:12 +01:00
|
|
|
urlpatterns = [
|
2017-08-07 18:56:56 +02:00
|
|
|
# Profile
|
|
|
|
url(r'^profile/$', views.profile,
|
|
|
|
name='profile'),
|
|
|
|
url(r'^profile/edit/$', views.profile_edit,
|
|
|
|
name='profile_edit'),
|
|
|
|
|
|
|
|
# Clubs
|
|
|
|
url(r'^club/(?P<pk>\d+)/$', views.club_detail,
|
|
|
|
name='club_detail'),
|
2017-02-12 14:14:08 +01:00
|
|
|
|
|
|
|
# Authentication
|
|
|
|
url(r'^cof/denied$',
|
|
|
|
TemplateView.as_view(template_name='cof-denied.html'),
|
|
|
|
name="denied"),
|
|
|
|
url(r'^cas/login$', django_cas_views.login, name="cas_login"),
|
|
|
|
url(r'^cas/logout$', django_cas_views.logout, name="cas_logout"),
|
|
|
|
url(r'^outsider/login$', views.login_ext, name="login_ext"),
|
|
|
|
url(r'^outsider/logout$', django_views.logout, {'next_page': 'home'}),
|
|
|
|
url(r'^login$', views.login, name="login"),
|
|
|
|
url(r'^logout$', views.logout, name="logout"),
|
2017-02-10 23:12:12 +01:00
|
|
|
]
|