diff --git a/core/accounts/templates/accounts/home.html b/core/accounts/templates/accounts/home.html index f2f58ac..044c29b 100644 --- a/core/accounts/templates/accounts/home.html +++ b/core/accounts/templates/accounts/home.html @@ -7,5 +7,9 @@

Moin moin!

+
+ {% csrf_token %} + +
\ No newline at end of file diff --git a/core/accounts/urls.py b/core/accounts/urls.py index 8e16324..a6d170c 100644 --- a/core/accounts/urls.py +++ b/core/accounts/urls.py @@ -5,6 +5,6 @@ from django.contrib.auth.views import LoginView urlpatterns = [ path('', views.home, name='home'), - path('logout/', LogoutView.as_view(), name='logout'), + path('logout/', LogoutView.as_view(next_page='login'), name='logout'), path('login/', LoginView.as_view(template_name='accounts/login.html', next_page='home'), name='login'), ] \ No newline at end of file