Популярное

Музыка Кино и Анимация Автомобили Животные Спорт Путешествия Игры Юмор

Интересные видео

2025 Сериалы Трейлеры Новости Как сделать Видеоуроки Diy своими руками

Топ запросов

смотреть а4 schoolboy runaway турецкий сериал смотреть мультфильмы эдисон
dTub
Скачать

Python Django Custom Authentication : Login, Logout & Registration | Beginner Friendly Tutorial [6]

Автор: Piko Can Fly

Загружено: 2025-03-21

Просмотров: 3807

Описание:

In this video, we dive into Django's built-in authentication system and set up user accounts with login, logout, and sign-up functionality. You'll learn how to handle user authentication securely and create user-friendly forms for signing in and registering. We’ll also use Bootstrap to enhance the UI and ensure a smooth user experience.

What You'll Learn:
✅ Setting up Django’s authentication system
✅ Creating a sign-up form and handling user registration
✅ Implementing login and logout functionality
✅ Displaying different UI elements based on user authentication (user.is_authenticated)
✅ Styling authentication pages with Bootstrap

By the end of this tutorial, you’ll have a solid foundation for managing users in your Django web applications.

🕣Chapters:


00:00 - Django Auth System is Awesome!

00:49 - Overview of what we are working with ; our users app and base.html

01:41 - Create templates ( user accounts templates : login.html , register.html and profile.html )

02:28 - Create urls.py in users app and include it in projects urls

03:46 - Django built in authentication views

04:14 - import and define LoginView

04:56 - Create Path to Login Page in urls.py

05:52 - When to use .as_view

06:28 - Common Django error caused by using backslash

07:24 - Login Page Template - extend base.html and render the login form

08:50 - Post Requests and CSRF Tokens

09:25 - Register User View & User Creation Form

10:37 - Defining Register User Form (Subclassing User Creation Form )

11:43 - Django's Form View

13:31 - Automatically log in user on user registration

14:03 - Routing to Registration Page

14:46 - Register User Template

15:13 - Testing User Registration

15:49 - Django Admin + Creating Super User

17:50 - Register Custom User in Django Admin

19:30 - Styling The Register Page - Loop Over the built in form elements and style each of them

23:45 - Showing and styling errors | Django's template filet striptags ( to remove html and replace it )

25:17 - Styling Login Page

25:57 - Add logout button to navbar

29:12 - Define Logout View ( Subclass Django's Built in Logout View ) and map to it

30:46 - Add Link to Login Page to navbar and conditionally render it based on whether the user is authenticated

31:40 - style the login button

34:08 - Add link to Register Page
00:00 - Django Auth System is Awesome!

00:49 - Overview of what we are working with ; our users app and base.html

01:41 - Create templates ( user accounts templates : login.html , register.html and profile.html )

02:28 - Create urls.py in users app and include it in projects urls

03:46 - Django built in authentication views

04:14 - import and define LoginView

04:56 - Create Path to Login Page in urls.py

05:52 - When to use .as_view

06:28 - Common Django error caused by using backslash

07:24 - Login Page Template - extend base.html and render the login form

08:50 - Post Requests and CSRF Tokens

09:25 - Register User View & User Creation Form

10:37 - Defining Register User Form (Subclassing User Creation Form )

11:43 - Django's Form View

13:31 - Automatically log in user on user registration

14:03 - Routing to Registration Page

14:46 - Register User Template

15:13 - Testing User Registration

15:49 - Django Admin + Creating Super User

17:50 - Register Custom User in Django Admin

19:30 - Styling The Register Page - Loop Over the built in form elements and style each of them

23:45 - Showing and styling errors | Django's template filet striptags ( to remove html and replace it )

25:17 - Styling Login Page

25:57 - Add logout button to navbar

29:12 - Define Logout View ( Subclass Django's Built in Logout View ) and map to it

30:46 - Add Link to Login Page to navbar and conditionally render it based on whether the user is authenticated

31:40 - style the login button

34:08 - Add link to Register Page


🔗 Code:
Where we left off:
https://github.com/PikoCanFly/Django-...

Today's final code:
https://github.com/PikoCanFly/Django-...



_____

Join this channel to get access to perks:
   / @pikocanfly  

#django #authentication #tutoriak #login #register #pythonwebdev

Python Django Custom Authentication : Login, Logout & Registration | Beginner Friendly Tutorial [6]

Поделиться в:

Доступные форматы для скачивания:

Скачать видео mp4

  • Информация по загрузке:

Скачать аудио mp3

Похожие видео

Easily Add Dynamic Content Loading to Django App with HTMX (Asynchronous Page Loading ) Tutorial

Easily Add Dynamic Content Loading to Django App with HTMX (Asynchronous Page Loading ) Tutorial

Форма входа в Django и аутентификация пользователя

Форма входа в Django и аутентификация пользователя

Build a Django + Tailwind Starter Project with Dark Mode & Custom User Model - Live Coding Tutorial

Build a Django + Tailwind Starter Project with Dark Mode & Custom User Model - Live Coding Tutorial

Building a Feature-Rich Django Website with HTMX, APIs, Auth & Async Views—Step by step Tutorial 10

Building a Feature-Rich Django Website with HTMX, APIs, Auth & Async Views—Step by step Tutorial 10

Build a Django Authentication System – Secure Login & Signup with Python | Full Tutorial

Build a Django Authentication System – Secure Login & Signup with Python | Full Tutorial

Login and Logout - Django Wednesdays ECommerce 7

Login and Logout - Django Wednesdays ECommerce 7

Сисадмины больше не нужны? Gemini настраивает Linux сервер и устанавливает cтек N8N. ЭТО ЗАКОННО?

Сисадмины больше не нужны? Gemini настраивает Linux сервер и устанавливает cтек N8N. ЭТО ЗАКОННО?

Забудь VS Code — Вот Почему Все Переходят на Cursor AI

Забудь VS Code — Вот Почему Все Переходят на Cursor AI

Python Django & Next.js: JWT Authentication with HttpOnly Cookies | Complete Project Tutorial

Python Django & Next.js: JWT Authentication with HttpOnly Cookies | Complete Project Tutorial

Обзор типичного ФИШИНГОВОГО сайта

Обзор типичного ФИШИНГОВОГО сайта

Срочные переговоры с Путиным / Вывод части войск

Срочные переговоры с Путиным / Вывод части войск

Экосистема React — это хаос. Вот ваш простой план развития React JS (2025)

Экосистема React — это хаос. Вот ваш простой план развития React JS (2025)

Hysteria2 — рабочий VPN при «блокировках» VLESS

Hysteria2 — рабочий VPN при «блокировках» VLESS

How to Deploy A Django Project - Step by step Python Webdev Tutorial | Deploy Dhango App  on Seenode

How to Deploy A Django Project - Step by step Python Webdev Tutorial | Deploy Dhango App on Seenode

Я ненавижу длинные цепочки If-Elif: этот шаблон проектирования решил эту проблему раз и навсегда

Я ненавижу длинные цепочки If-Elif: этот шаблон проектирования решил эту проблему раз и навсегда

Login With User Authentication - Django Wednesdays #21

Login With User Authentication - Django Wednesdays #21

Почему ваш код не соответствует Python (и как это исправить)

Почему ваш код не соответствует Python (и как это исправить)

Разблокировка нейросетей (AI) без VPN

Разблокировка нейросетей (AI) без VPN

Декораторы Python — наглядное объяснение

Декораторы Python — наглядное объяснение

РОУТЕР С VPN за 1200₽ | OpenWRT + Podkop + Amnezia | Полный Гайд на Xiaomi 4С

РОУТЕР С VPN за 1200₽ | OpenWRT + Podkop + Amnezia | Полный Гайд на Xiaomi 4С

© 2025 dtub. Все права защищены.



  • Контакты
  • О нас
  • Политика конфиденциальности



Контакты для правообладателей: infodtube@gmail.com