gestioCOF/gestion/urls.py
Martin Pépin a28c00e474 Move the auth stuff to gestion/
- The login views are in `gestion/`
- The templates are under `gestion/templates/gestion/`
- `cof/shared.py` moves to `gestion/` and is splitted into 3 files:
    - The auth backends are in `backends.py`.
    - The context_processor is in `context_processor.py`
    - The LOCK/UNLOCK functions remain in `shared.py`
2017-02-12 15:38:14 +01:00

24 lines
861 B
Python

from django.conf.urls import url, include
from django.views.generic.base import TemplateView
from django.contrib.auth import views as django_views
from django.contrib import admin
from django_cas_ng import views as django_cas_views
from . import views
urlpatterns = [
# Profile edition
url(r"^profile/?$", views.profile, name="profile"),
# 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"),
]