logout redirect improved
This commit is contained in:
@@ -224,6 +224,7 @@ MEDIA_ROOT = os.path.join(BASE_DIR, 'media')
|
||||
LOGIN_REDIRECT_URL = '/rowers/list-workouts/'
|
||||
LOGIN_URL = '/login/'
|
||||
LOGOUT_URL = '/logout/'
|
||||
LOGOUT_REDIRECT_URL = '/'
|
||||
|
||||
# Update Cache with task progress password
|
||||
|
||||
|
||||
@@ -59,7 +59,9 @@ urlpatterns += [
|
||||
url(r'^api-auth/', include('rest_framework.urls', namespace='rest_framework')),
|
||||
url(r'^$',rootview),
|
||||
url(r'^login/',auth_views.login, name='login'),
|
||||
url(r'^logout/',auth_views.logout_then_login,name='logout'),
|
||||
url(r'^logout/$',auth_views.logout,
|
||||
{'next_page': '/'},
|
||||
name='logout',),
|
||||
url(r'^rowers/',include('rowers.urls')),
|
||||
url(r'^cvkbrno/',include('cvkbrno.urls')),
|
||||
url(r'^admin/rq/',include('django_rq_dashboard.urls')),
|
||||
|
||||
Reference in New Issue
Block a user