Add root login view
This commit is contained in:
parent
428ba16d2b
commit
0d2d7e0c72
|
@ -15,9 +15,11 @@ Including another URLconf
|
||||||
"""
|
"""
|
||||||
from django.contrib import admin
|
from django.contrib import admin
|
||||||
from django.urls import include, path
|
from django.urls import include, path
|
||||||
|
from django.contrib.auth import views as auth_views
|
||||||
|
|
||||||
urlpatterns = [
|
urlpatterns = [
|
||||||
path('accounts/', include('django.contrib.auth.urls')),
|
path('accounts/', include('django.contrib.auth.urls')),
|
||||||
|
path('login/', auth_views.LoginView.as_view()),
|
||||||
path('admin/', admin.site.urls),
|
path('admin/', admin.site.urls),
|
||||||
path('', include('borg.urls')),
|
path('', include('borg.urls')),
|
||||||
]
|
]
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body class="text-center">
|
<body>
|
||||||
{% block content %}
|
{% block content %}
|
||||||
|
|
||||||
<main class="form-signin mx-auto w-25 px-5">
|
<main class="form-signin mx-auto w-25 px-5">
|
||||||
|
|
Loading…
Reference in New Issue
Block a user