fix for clean logout
This commit is contained in:
@@ -151,3 +151,6 @@ STATICFILES_DIRS = [
|
|||||||
# https://docs.djangoproject.com/en/4.0/ref/settings/#default-auto-field
|
# https://docs.djangoproject.com/en/4.0/ref/settings/#default-auto-field
|
||||||
|
|
||||||
DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField'
|
DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField'
|
||||||
|
|
||||||
|
# Redirect on logout
|
||||||
|
LOGOUT_REDIRECT_URL = "home"
|
||||||
@@ -4,10 +4,5 @@ from django.urls import include, path, re_path
|
|||||||
urlpatterns = [
|
urlpatterns = [
|
||||||
path('', include('tipp.urls')),
|
path('', include('tipp.urls')),
|
||||||
path('admin/', admin.site.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': '/'}),
|
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user