From 7643e18acc07d7b7c93b8a4afa271838b6fe93e8 Mon Sep 17 00:00:00 2001 From: Benbb96 Date: Wed, 8 May 2024 16:01:26 +0200 Subject: [PATCH] Explain login/logout redirect settings in documentation --- docs/install.rst | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/docs/install.rst b/docs/install.rst index a72de66a..f486defc 100644 --- a/docs/install.rst +++ b/docs/install.rst @@ -162,9 +162,16 @@ errors with trying to create User settings. following to ``settings.py`` to get your Django installation to use the login view included in ``django-helpdesk``:: - LOGIN_URL = '/helpdesk/login/' + LOGIN_URL = 'helpdesk:login' - Alter the URL to suit your installation path. + Alter the view name to suit your installation path. + + You can also add following settings to handle redirects after logging in or out:: + + LOGIN_REDIRECT_URL = 'helpdesk:home' + LOGOUT_REDIRECT_URL = 'helpdesk:home' + + If you don't set ``LOGOUT_REDIRECT_URL``, a logout confirmation page will be displayed. 8. Load initial e-mail templates, otherwise you will not be able to send e-mail::