kopia lustrzana https://gitlab.com/marnanel/chapeau
Rename RootPageView to RootPage. Add django.contrib.auth.views.LoginView to urls.conf.
rodzic
6f97a4ee08
commit
0403dbacc9
|
@ -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()),
|
||||
|
||||
]
|
||||
|
|
|
@ -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):
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue