add custom template views

This commit is contained in:
Jens Langhammer
2019-03-22 12:16:30 +01:00
parent 80e6d59382
commit 4d6bb60134
6 changed files with 170 additions and 1 deletions

View File

@ -7,13 +7,18 @@ from django.urls import include, path
from django.views.generic import RedirectView
from passbook.core.auth import view
from passbook.core.views import authentication, overview, user
from passbook.core.views import authentication, error, overview, user
from passbook.lib.utils.reflection import get_apps
LOGGER = getLogger(__name__)
admin.autodiscover()
admin.site.login = RedirectView.as_view(pattern_name='passbook_core:auth-login')
handler400 = error.BadRequestView.as_view()
handler403 = error.ForbiddenView.as_view()
handler404 = error.NotFoundView.as_view()
handler500 = error.BadRequestView.as_view()
core_urls = [
# Authentication views
path('auth/login/', authentication.LoginView.as_view(), name='auth-login'),