account Directory¶
Purpose¶
This directory contains Django-Allauth account management templates that provide user authentication interfaces including login, signup, password management, email verification, and account security features. These templates create a complete user authentication experience with modern, responsive design and comprehensive security features.
Contents¶
login.html: User login form with username/email and password authenticationsignup.html: User registration form with account creation and email verificationlogout.html: User logout confirmation page with session terminationpassword_change.html: Password change form for authenticated userspassword_set.html: Initial password setup for users who signed up without passwordspassword_reset.html: Password reset request form with email-based recoverypassword_reset_done.html: Confirmation page after password reset email sentpassword_reset_from_key.html: Password reset form accessed via email linkpassword_reset_from_key_done.html: Confirmation page after successful password resetemail.html: Email address management interface for usersemail_change.html: Email address change form with verificationemail_confirm.html: Email address confirmation page from verification linksverification_sent.html: Confirmation that email verification was sentverified_email_required.html: Page prompting users to verify their email addressaccount_inactive.html: Page shown when user account is inactive or disabledsignup_closed.html: Page shown when user registration is temporarily disabledreauthenticate.html: Re-authentication form for sensitive operationsbase_reauthenticate.html: Base template for re-authentication pagesrequest_login_code.html: Request login code form for passwordless authenticationconfirm_login_code.html: Confirm login code form for passwordless authenticationconfirm_email_verification_code.html: Email verification code confirmation formsignup_by_passkey.html: Passkey-based registration form for modern authenticationbase_entrance.html: Base template for login/signup entrance pagesbase_manage.html: Base template for account management pagesbase_manage_email.html: Base template for email management pagesbase_manage_password.html: Base template for password management pagessnippets/: Subdirectory containing reusable template components (has its own README)messages/: Subdirectory containing message templates for notifications (has its own README)email/: Subdirectory containing email templates for account notifications (has its own README)
Usage¶
Templates are rendered by Django-Allauth views and can be customized:
<!-- Example login.html template -->
{% extends "account/base_entrance.html" %}
{% load allauth i18n %}
{% block head_title %}{% trans "Sign In" %}{% endblock %}
{% block content %}
<div class="auth-form">
<h1>{% trans "Sign In" %}</h1>
<form class="login" method="POST" action="{% url 'account_login' %}">
{% csrf_token %}
{{ form.as_p }}
<button type="submit" class="btn btn-primary">
{% trans "Sign In" %}
</button>
</form>
<p class="auth-links">
<a href="{% url 'account_reset_password' %}">
{% trans "Forgot Password?" %}
</a>
</p>
</div>
{% endblock %}
Container Configuration¶
Account templates served through Django web container: - Templates rendered with full Django context and user session data - Responsive design optimized for mobile and desktop viewing - Form validation and error handling integrated with Django-Allauth - CSRF protection and security features enabled for all authentication forms
Related Paths¶
- Incoming: Rendered by Django-Allauth views handling user authentication workflows
- Outgoing: Provides complete user account management interface for the parody news generator application