django-oidc-provider/oidc_provider/tests/app/urls.py

19 lines
689 B
Python
Raw Normal View History

2015-06-08 16:01:09 +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-06-08 16:01:09 +00:00
from django.contrib import admin
from django.views.generic import TemplateView
urlpatterns = [
2015-06-08 16:01:09 +00:00
url(r'^$', TemplateView.as_view(template_name='home.html'), name='home'),
2018-03-23 18:46:12 +00:00
url(r'^accounts/login/$',
auth_views.login, {'template_name': 'accounts/login.html'}, name='login'),
url(r'^accounts/logout/$',
auth_views.logout, {'template_name': 'accounts/logout.html'}, name='logout'),
2015-06-08 16:01:09 +00:00
url(r'^openid/', include('oidc_provider.urls', namespace='oidc_provider')),
2018-02-01 17:00:57 +00:00
url(r'^admin/', admin.site.urls),
]