Is it possible to pass a flash message along with a path in urls.py?
Since I did not write the auth_views
into my core views.py file I figured there might be an easy way to pass it along with the request. I'd prefer to use the auth_views out of the box so that it's easy to update my version of Django. If this is not possible, then I am not trying to force it. Checked the documentation but did not find anything about messages.
path('logout/', auth_views.logout, {'next_page': auth_views.login}, name='logout'),
I'd like to pass something like the message below so that it doesn't feel like they clicked login by accident or something.
'messages.success(request, 'You have securely logged out of {{request.user.email}}. Thank you for visiting.')