fix for clean logout

This commit is contained in:
Martin Bley
2022-09-18 17:57:38 +02:00
parent fb3e425471
commit c1deabc692
2 changed files with 3 additions and 5 deletions

View File

@@ -151,3 +151,6 @@ STATICFILES_DIRS = [
# https://docs.djangoproject.com/en/4.0/ref/settings/#default-auto-field
DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField'
# Redirect on logout
LOGOUT_REDIRECT_URL = "home"

View File

@@ -4,10 +4,5 @@ from django.urls import include, path, re_path
urlpatterns = [
path('', include('tipp.urls')),
path('admin/', admin.site.urls),
# re_path(r'^login$', auth.views.login, {
# 'template_name': 'login.html'}
# ),
# re_path(r'^logout$', auth.views.logout, {
# 'next_page': '/'}),
]