I am using the django's built-in auth module for user authentication.
urls.py
url(r'^accounts/logout/', auth_views.logout, kwargs={'next_page': reverse_lazy('login')}),
url(r'^accounts/login/', auth_views.login, name='login', kwargs={'redirect_authenticated_user': True,"authentication_form":CustomAuthForm}),
The user is redirected to login page immediately after logout. But I need to display a "signed out!" message to the user in the login page.
How would I know whether a user clicked the logout link to arrive at login page or he/she directly visited login(in this case I won't show any message).