Commit c3be1085 authored by bence92's avatar bence92
Browse files

logout redirect

parent 17f94d67
......@@ -102,7 +102,6 @@ USE_L10N = True
USE_TZ = True
LOGIN_REDIRECT_URL = '/'
LOGOUT_REDIRECT_URL = '/'
LOGIN_URL = '/login/'
# Static files (CSS, JavaScript, Images)
......
......@@ -5,6 +5,6 @@ from pityu.urls import url_patterns
urlpatterns = [
url(r'^admin/', admin.site.urls),
url(r'^login/$', 'django.contrib.auth.views.login', name='login'),
url(r'^logout/$', 'django.contrib.auth.views.logout', name='logout'),
url(r'^logout/$', 'django.contrib.auth.views.logout', {'next_page': '/'}, name='logout'),
url(r'^', include(url_patterns)),
]
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment