Rename RootPageView to RootPage. Add django.contrib.auth.views.LoginView to urls.conf.

merge-requests/2/merge
Marnanel Thurman 2020-11-12 17:46:20 +00:00
rodzic 6f97a4ee08
commit 0403dbacc9
2 zmienionych plików z 7 dodań i 2 usunięć

Wyświetl plik

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

Wyświetl plik

@ -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):