2015-04-28 17:55:35 +00:00
|
|
|
from django.contrib.auth import views as auth_views
|
2018-02-01 17:00:57 +00:00
|
|
|
try:
|
|
|
|
from django.urls import include, url
|
|
|
|
except ImportError:
|
|
|
|
from django.conf.urls import include, url
|
2015-03-19 20:10:00 +00:00
|
|
|
from django.contrib import admin
|
2015-04-30 20:03:39 +00:00
|
|
|
from django.views.generic import TemplateView
|
2015-03-19 20:10:00 +00:00
|
|
|
|
2015-04-28 17:55:35 +00:00
|
|
|
|
2016-01-25 17:19:57 +00:00
|
|
|
urlpatterns = [
|
2015-04-30 20:03:39 +00:00
|
|
|
url(r'^$', TemplateView.as_view(template_name='home.html'), name='home'),
|
2018-02-01 17:00:57 +00:00
|
|
|
url(r'^accounts/login/$', auth_views.login, {'template_name': 'login.html'}, name='login'),
|
|
|
|
url(r'^accounts/logout/$', auth_views.logout, {'next_page': '/'}, name='logout'),
|
2016-04-07 00:28:13 +00:00
|
|
|
url(r'^', include('oidc_provider.urls', namespace='oidc_provider')),
|
2018-02-01 17:00:57 +00:00
|
|
|
url(r'^admin/', admin.site.urls),
|
2016-01-25 17:19:57 +00:00
|
|
|
]
|