From 0d2d7e0c72bd571a5e54aaa01048712aeb5cc4f9 Mon Sep 17 00:00:00 2001 From: George Lacey Date: Mon, 10 May 2021 02:46:25 +0100 Subject: [PATCH] Add root login view --- borgweb/borgweb/urls.py | 2 ++ borgweb/templates/registration/login.html | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/borgweb/borgweb/urls.py b/borgweb/borgweb/urls.py index db47c5f..37b82a1 100644 --- a/borgweb/borgweb/urls.py +++ b/borgweb/borgweb/urls.py @@ -15,9 +15,11 @@ Including another URLconf """ from django.contrib import admin from django.urls import include, path +from django.contrib.auth import views as auth_views urlpatterns = [ path('accounts/', include('django.contrib.auth.urls')), + path('login/', auth_views.LoginView.as_view()), path('admin/', admin.site.urls), path('', include('borg.urls')), ] diff --git a/borgweb/templates/registration/login.html b/borgweb/templates/registration/login.html index fdc9779..8915fd1 100644 --- a/borgweb/templates/registration/login.html +++ b/borgweb/templates/registration/login.html @@ -20,7 +20,7 @@ } - + {% block content %}