Authentication URL Configurations ================================= SailPilot's authentication-related URL configurations define the routing for various user authentication processes, including login, registration, logout, and password reset. These URL patterns ensure that the appropriate views are called for each authentication-related action. URL Patterns ------------ - **Login (`/login/`)**: - Routes to the `LoginView`. - Uses a custom template (`static_pages/static/login.html`) for the login interface. - Redirects authenticated users to avoid redundant logins. - **Logout (`/logout/`)**: - Uses Django's built-in `LogoutView`. - Redirects to the login page upon successful logout. - **Registration (`/register/`)**: - Handled by the `RegisterView`. - Utilizes a custom registration form and template (`static_pages/static/register.html`). - Redirects authenticated users and logs in new users upon successful registration. - **Password Reset (`/password-reset/`)**: - Managed by `PasswordResetView`. - Custom template (`static_pages/static/password_reset.html`) for initiating password reset requests. - **Password Reset Done (`/password-reset/done/`)**: - Linked to `PasswordResetDoneView`. - Indicates that a password reset email has been sent, using a custom template (`static_pages/static/password_reset_done.html`). - **Password Reset Confirm (`/password-reset-confirm///`)**: - Routes to `PasswordResetConfirmView`. - Allows users to set a new password, using a custom template (`static_pages/static/password_reset_confirm.html`). - **Password Reset Complete (`/password-reset-complete/`)**: - Handled by `PasswordResetCompleteView`. - Confirms that the password has been successfully reset, using a custom template (`static_pages/static/password_reset_complete.html`). Summary ------- The authentication URL patterns in SailPilot are carefully designed to manage the user authentication lifecycle effectively. The use of custom templates for each of these functionalities ensures a coherent and user-friendly experience across all authentication-related pages. Indices and tables ================== * :ref:`genindex` * :ref:`modindex` * :ref:`search`