Guided Notes
Authentication
Login, logout, and permissions.
Django's auth system
Slide 1 / 5django.contrib.auth provides: β’ a User model (username, email, password, is_staff, is_superuser), β’ secure password hashing β passwords are never stored in plain text, β’ login and logout views, β’ permissions and groups, β’ request.user in every view and template.
For new projects, consider a custom user model from the start (AUTH_USER_MODEL) so you can add fields later without painful migrations.