Menu

Log in

Sign up

From beginner to master of web design, coding, infrastructure operation, business development and marketing

  • COURSES
  • HTML & CSS Introduction
  • HTML & CSS Coding with AI
  • Linux Introduction
  • Docker Basics
  • Git & GitHub Introduction
  • JavaScript Coding with AI
  • Django Introduction
  • AWS Basics
  • Figma Introduction
  • SEO Tutorial for Beginners
  • SEO with AI
  • OTHERS
  • About
  • Terms of Service
  • Privacy Policy

© 2024 D-Libro. All Rights Reserved

Django IntroductionChapter 5. User Management

Chapter 5. User Management

Basics of User Management in Django

This chapter covers the basics of user authentication and how to develop user management functions using Django Allauth.

What We Cover in This Chapter

The following topics are covered in this chapter:

User Authentication

In this section, we’ll explore the process of user sign-up and authentication, discussing how web applications verify a user’s identity through login mechanisms and why this is critical for securing content and user-specific features.

Overview of User Management Functions

We'll examine the key stages in user management, including how to create and manage user profiles, control login statuses, and implement password reset and update functionalities. We'll also consider the developer’s perspective and look at tools for handling user data effectively.

User Management Function Development with Django

This section demonstrates the essential tools and steps to develop user management functions using Django. We’ll focus on how to define models, manage authentication and user data, and ensure a seamless experience through Django’s user management system.

Approaches to Building User Management Functions in Django

We’ll review three approaches to building user management functions: using function-based views, utilizing Django's built-in class-based views, and leveraging third-party libraries such as django-allauth.

Django Allauth (1) – Introduction

We’ll introduce django-allauth, a powerful library for handling user authentication and social login systems. This section will explain its features, benefits, and how it can simplify the development of user management functionalities in Django.

Django Allauth (2) – Installation and Initial Settings

This section covers the installation process of django-allauth and how to set up initial configurations for email-based authentication.

Django Allauth (3) – Email Verification via Console

Learn how to set up email verification using a console for testing purposes in a local development environment.

Django Allauth (4) – Email Verification via Gmail

This section explains how to set up email verification using Gmail, including how to generate App passwords and configure your Gmail account for SMTP.

Django Allauth (5) – Social Login with GitHub

We’ll guide you through setting up social login with GitHub, including registering a new OAuth app and configuring Django to handle GitHub authentication.

Django Allauth (6) – Social Login with Google

Learn how to integrate Google login into your Django app. This section walks you through registering an OAuth app with Google Cloud and adding the necessary configurations in Django.

Django Allauth (7) – Allauth Template File Setup

This lesson covers how to customize the templates provided by django-allauth, creating mirror template files in your project to adjust the UI for authentication pages.

Django Allauth (8) – Add Basic Styling with Bootstrap and Crispy Forms

We’ll demonstrate how to apply Bootstrap and Crispy Forms to style your Allauth pages, ensuring they look polished and professional.

Django Allauth (9) – Customize Sign-in and Sign-up Pages

In this section, we’ll show you how to customize the sign-in and sign-up pages by adding logos, restructuring the UI, and applying custom styles to improve the user experience.

User Models

We’ll explore the built-in Django user model and how you can extend or replace it with custom fields to fit your specific application needs.

Login Required – LoginRequiredMixin

Learn how to use LoginRequiredMixin in class-based views to restrict access to views for authenticated users only. This section will also demonstrate how to use the login_required decorator for function-based views.

User Login Status Icon on Navigation Bar

This section explains how to display a user’s login status by showing a user icon and username on the navigation bar when the user is logged in, improving the site’s user interface and experience.

Learn offline for better focus!
A book for this course is available on Amazon.

Django Visual Guide

Step-By-Step Manual for Complete Beginners to Mastering Django, Python, and Web Development.

Your browser does not support the video tag.
Get the Book Now

More Topics to Explore

Establishing One-To-One Relationships in Django

Django Models – OneToOneField

Implementing User Authentication in Django

User Authentication

Establishing One-To-One Relationships in Django

Django Models – OneToOneField

Implementing User Authentication in Django

User Authentication

Tags:

Django

User Authentication

User Management

django-allauth

Django Introduction
Course Content

Chapter 1. Django Key Concepts

Web Framework and Django

Websites vs. Django Web Apps

How Django Handles HTTP Request and HTTP Response

Django's MVT Framework

Django Templates vs. Django APIs

Chapter 2. Django Quick Start Guide

Install Python

Install Visual Studio Code

Create Project Directory

Set Up Virtual Environment

Install Django

Start Django Project

Run Server

Database Migration

URL dispatcher – urls.py

Create Superuser and Log In to Django Admin

Start App

Create HTML Templates

Create Views

Add URL Patterns

Project vs. App

Chapter 3. Django Models and Databases

Create a Database in Django

Relational Database

Create Django Models

Makemigrations and Migrate

Add Models in Django Admin – admin.py

Change Display Name of Record Objects

Django Models – Data Field Type

Django Models – Field Options

Django Models – Help Text Option

Django Models – Choices Option

Django Models – DateField with datetime Module

Django Models – Relationship Fields

Django Models – ID

Django Models – ForeignKey (OneToMany Relationship)

Django Models – OneToOneField

Django Models – ManyToManyField

Chapter 4. Create CRUD Web Application

CRUD Web Application

Basic CRUD Structure in Django

Django Generic Views

How To Write Class-Based Views with Generic Views

Generic View Basic Attributes

URL Dispatcher for CRUD Views

Django Templates for CRUD Views

Django Template Language (DTL)

Template for List Page

get_FOO_display method

Template for Detail Page

Template with Model Relations

Template for Create and Update Page

Template for Delete Page

Add Links – {% url %} tag

Extend Templates – {% extends %} tag

Check Developing App UI on Mobile Device

Django Templates with Bootstrap

Crispy Forms

Customize Views (1) – Change List Order

Customizing Views (2) – Filter Lists

Context

Customize Views (3) – Add Extra Context

Modularize Templates – {% include %} tag

Static Files in Development Environment – {% static %} tag

STATIC_URL and STATICFILES_DIRS

Create Index HTML

Chapter 5. User Management

User Authentication

Overview of User Management Functions

User Management Function Development with Django

Approaches to Building User Management Functions in Django

Django Allauth (1) – Introduction

Django Allauth (2) – Installation and Initial Settings

Django Allauth (3) – Email Verification via Console

Django Allauth (4) – Email Verification via Gmail

Django Allauth (5) – Social Login with GitHub

Django Allauth (6) – Social Login with Google

Django Allauth (7) – Allauth Template File Setup

Django Allauth (8) – Add Basic Styling with Bootstrap and Crispy Forms

Django Allauth (9) – Customize Sign-in and Sign-up Pages

User Models

Login Required – LoginRequiredMixin

User Login Status Icon on Navigation Bar

Chapter 6. Deploy Django App

Overview of Django App Deployment (1)

Overview of Django App Deployment (2)

Key Steps of Django App Deployment

Hosting Service Initial Settings (1) – AWS Lightsail setup

Hosting Service Initial Settings (2) – SSH Remote Connection

Manage Local Computer and Remote Server Simultaneously

Tips for Managing Local Development and Remote Production Environment

Hosting Service Initial Settings (3) – Clone Project Directory with GitHub

Production Database Setup

Django Production Settings (1) – Settings.py for Development and Production

Django Production Settings (2) – Production Settings

Django Production Settings (3) – django-environ and .env file

Static File Settings

Django and Dependency Installation on Production Server

Web Server and Application Server in Django

Application Server Setup – Gunicorn

Web Server Setup – Nginx

Domain Setup

SSL Setup – Certbot

Email Setting – SendGrid

Social Login for Production

Manage Local Development and Remote Production Environment

Chapter 1. Django Key Concepts

Web Framework and Django

Websites vs. Django Web Apps

How Django Handles HTTP Request and HTTP Response

Django's MVT Framework

Django Templates vs. Django APIs

Chapter 2. Django Quick Start Guide

Install Python

Install Visual Studio Code

Create Project Directory

Set Up Virtual Environment

Install Django

Start Django Project

Run Server

Database Migration

URL dispatcher – urls.py

Create Superuser and Log In to Django Admin

Start App

Create HTML Templates

Create Views

Add URL Patterns

Project vs. App

Chapter 3. Django Models and Databases

Create a Database in Django

Relational Database

Create Django Models

Makemigrations and Migrate

Add Models in Django Admin – admin.py

Change Display Name of Record Objects

Django Models – Data Field Type

Django Models – Field Options

Django Models – Help Text Option

Django Models – Choices Option

Django Models – DateField with datetime Module

Django Models – Relationship Fields

Django Models – ID

Django Models – ForeignKey (OneToMany Relationship)

Django Models – OneToOneField

Django Models – ManyToManyField

Chapter 4. Create CRUD Web Application

CRUD Web Application

Basic CRUD Structure in Django

Django Generic Views

How To Write Class-Based Views with Generic Views

Generic View Basic Attributes

URL Dispatcher for CRUD Views

Django Templates for CRUD Views

Django Template Language (DTL)

Template for List Page

get_FOO_display method

Template for Detail Page

Template with Model Relations

Template for Create and Update Page

Template for Delete Page

Add Links – {% url %} tag

Extend Templates – {% extends %} tag

Check Developing App UI on Mobile Device

Django Templates with Bootstrap

Crispy Forms

Customize Views (1) – Change List Order

Customizing Views (2) – Filter Lists

Context

Customize Views (3) – Add Extra Context

Modularize Templates – {% include %} tag

Static Files in Development Environment – {% static %} tag

STATIC_URL and STATICFILES_DIRS

Create Index HTML

Chapter 5. User Management

User Authentication

Overview of User Management Functions

User Management Function Development with Django

Approaches to Building User Management Functions in Django

Django Allauth (1) – Introduction

Django Allauth (2) – Installation and Initial Settings

Django Allauth (3) – Email Verification via Console

Django Allauth (4) – Email Verification via Gmail

Django Allauth (5) – Social Login with GitHub

Django Allauth (6) – Social Login with Google

Django Allauth (7) – Allauth Template File Setup

Django Allauth (8) – Add Basic Styling with Bootstrap and Crispy Forms

Django Allauth (9) – Customize Sign-in and Sign-up Pages

User Models

Login Required – LoginRequiredMixin

User Login Status Icon on Navigation Bar

Chapter 6. Deploy Django App

Overview of Django App Deployment (1)

Overview of Django App Deployment (2)

Key Steps of Django App Deployment

Hosting Service Initial Settings (1) – AWS Lightsail setup

Hosting Service Initial Settings (2) – SSH Remote Connection

Manage Local Computer and Remote Server Simultaneously

Tips for Managing Local Development and Remote Production Environment

Hosting Service Initial Settings (3) – Clone Project Directory with GitHub

Production Database Setup

Django Production Settings (1) – Settings.py for Development and Production

Django Production Settings (2) – Production Settings

Django Production Settings (3) – django-environ and .env file

Static File Settings

Django and Dependency Installation on Production Server

Web Server and Application Server in Django

Application Server Setup – Gunicorn

Web Server Setup – Nginx

Domain Setup

SSL Setup – Certbot

Email Setting – SendGrid

Social Login for Production

Manage Local Development and Remote Production Environment