add view for session refresh

This commit is contained in:
Michał Najborowski 2022-01-31 19:16:56 +01:00
parent 9457642206
commit 09b99f022a
3 changed files with 10 additions and 1 deletions

View File

@ -26,6 +26,7 @@ urlpatterns = [
path('', include('django.contrib.auth.urls')),
path('signup/', SignUpView.as_view(), name='signup'),
path('', TemplateView.as_view(template_name='home.html'), name='home'),
path("session-refresh/", TemplateView.as_view(template_name='session_refresh.html'), name='session-refresh'),
path('favicon.ico', RedirectView.as_view(
url=staticfiles_storage.url('images/favicon.ico'))),
]

View File

@ -1,5 +1,4 @@
from django.contrib.auth.forms import UserCreationForm
from django.shortcuts import redirect
from django.urls import reverse_lazy
from django.views import generic

View File

@ -0,0 +1,9 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>session_refresh</title>
</head>
<body>
</body>
</html>