Add root login view

This commit is contained in:
George Lacey 2021-05-10 02:46:25 +01:00
parent 428ba16d2b
commit 0d2d7e0c72
2 changed files with 3 additions and 1 deletions

View File

@ -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')),
]

View File

@ -20,7 +20,7 @@
}
</style>
</head>
<body class="text-center">
<body>
{% block content %}
<main class="form-signin mx-auto w-25 px-5">