From 0403dbacc9fbcffa3dac03fab88ccc8b706ca0be Mon Sep 17 00:00:00 2001 From: Marnanel Thurman Date: Thu, 12 Nov 2020 17:46:20 +0000 Subject: [PATCH] Rename RootPageView to RootPage. Add django.contrib.auth.views.LoginView to urls.conf. --- kepi/tophat_ui/urls.py | 7 ++++++- kepi/tophat_ui/views.py | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/kepi/tophat_ui/urls.py b/kepi/tophat_ui/urls.py index 379f862..6ef47cc 100644 --- a/kepi/tophat_ui/urls.py +++ b/kepi/tophat_ui/urls.py @@ -5,8 +5,13 @@ # Licensed under the GNU Public License v2. from django.urls import path, re_path +import django.contrib.auth.views import kepi.tophat_ui.views as tophat_views +import kepi.tophat_ui.forms as tophat_forms urlpatterns = [ - path('', tophat_views.RootPageView.as_view()), + path('', tophat_views.RootPage.as_view()), + + path('login/', django.contrib.auth.views.LoginView.as_view()), + ] diff --git a/kepi/tophat_ui/views.py b/kepi/tophat_ui/views.py index 29bc0e2..f5327d2 100644 --- a/kepi/tophat_ui/views.py +++ b/kepi/tophat_ui/views.py @@ -11,7 +11,7 @@ from django.views import View from django.shortcuts import render from django.conf import settings -class RootPageView(View): +class RootPage(View): def get(self, request, *args, **kwargs):