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

preview_player
Показать описание
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
✅ 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!

03:46 - Django built in authentication views

04:14 - import and define LoginView

05:52 - When to use .as_view

06:28 - Common Django error caused by using backslash

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!

03:46 - Django built in authentication views

04:14 - import and define LoginView

05:52 - When to use .as_view

06:28 - Common Django error caused by using backslash

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:

Today's final code:

_____

Join this channel to get access to perks:

#django #authentication #tutoriak #login #register #pythonwebdev
Рекомендации по теме
Комментарии
Автор

Hey there, I hope you enjoy this video as much I enjoyed making it! Let me know if you have questions or suggestions and I will do my best to reply as soon as I can.

P.S: The next video is already available for channel members and will go public on Tuesday at 15:00 UTC. 😊

PikoCanFly
Автор

Thanks for teaching us so many great things! Really appreciate your content.

arefsa
Автор

much love from Kenya i love your content you explain the code into details.

rahimranxx
Автор

Thank you Piko for explaining everything so well and so calmly!

friendlyalien-joys
Автор

From colombia. I love your Videos. Best wishes for you.

estebansoto
Автор

Which extension is used for auto complete or auto suggestion can you tell me please it's helpful for me

AjaySharma-jwle
Автор

its great video thanks, It is better to use django authentication bilt-in Class or django-allauth library, also if you can make a vidoe about django-allauth with Login, Logout, Sign-Up, Rest Password, Change email

alialrubay
Автор

mam i react + DRF auth you can't impletent protected route plzzz guide or make vedio

Codeflix
welcome to shbcf.ru