Python Django Authentication System with Password Reset; Complete Project Beginner Friendly Tutorial
Ғылым және технология
In this video we will create a Django Project from scratch and create a complete custom authentication system with password reset functionality by using the Django's built in Authentication System. We will learn how to use and customize Django's built in Authentication Views and Forms, how to make a Custom Registration Page, and how to get our Django app to send users emails when they forget their passwords. We will also learn how easy it is to dynamically render content based on whether a use is signed in or not and much much more.
You can access and download the code file from my Patreon page:
/ pikocanfly
Chapters:
00:00 - intro
00:24 - Create Project Directory and Open in Visual Studio Code
00:42 - Check that Python is Installed and Create .venv Environment
01:43 - Install Django and Create New Django Project
02:57 - Django Admin
03:21 - Run Migrations and Create Super User
05:14 - Add Auth Paths to urls.py
06:12 - Create Custom Auth Templates [ login - password reset confirm - password reset done - email - password reset complete ]
11:25 - Adding Static Files ( CSS )
13:41 - Add CSS Styling to base/layout template
20:34 - Register Email to send users password reset emails
29:31 - Create Registration Form that inherits from Django’s User Creation Form
31:38 - Create Registration View
34:00 - Add Path to Registration View in urls.py
36:01 - Adding Logout Button
37:20 - Redirect back to Index on Logout
38:35 - Create register.html ( Registration Template )
40:04 - Registration Form
#Django #python #tutorial #authentication
Пікірлер: 27
Hello! 👋 I had so much fun creating this video and I can't wait to hear what you think! As a new YT creator, I still have so much to learn so any advice or suggestions you might have would mean so much to me! Thank you for watching and thanks for being here!
Hey Piko, I am in love with your sweet voice
Hi Piko, Thank you for this resource! Please make more Django videos!
@PikoCanFly
3 ай бұрын
Thank you for kind words! I am working on it 😄
Hi Pico. This is a very nice tutorial. I appreciate how complete it is. The CSS styling is a very nice element that is missing in other tutorials.
@PikoCanFly
3 ай бұрын
Hi! Thank you for taking the time to write this. I am so glad you like it!
NIce!
thanks Piko for this, it would be awesome if you would have added functionality that user will be considered registered only upon email varification sent on his email.
@PikoCanFly
3 ай бұрын
Thanks! I am planning to make a video about that in the near future.
please videos for django ninja with auth and permissions
i like your energie keep going please can you make a video on how we can override the default django admin dashboard with CSS or change the layout with our HTML? because its ugly
@PikoCanFly
2 ай бұрын
Thank you! A video about overriding Django admin could be interesting. I will think about making one. 🤔
Hello i'm George had a little trouble with sending the password email can you assist
@PikoCanFly
19 күн бұрын
Hello George, Without details about the errors you're getting I can't know the exact the problem. However, I would make sure your Django email settings are properly configured to utilize the SMTP server provided by your email service provider (configuration varies from provider to provider). This involves specifying the correct SMTP host, port, authentication details, username, and password. I hope that helps.
css is not working when i run the server i have tried ur source as well pls recommend some solution(im begineer)
@PikoCanFly
Ай бұрын
Sometimes changes are not immediately reflected due to browser caching. Try clearing your browser cache or reloading the page with a hard refresh. I hope that helps.
mam my django server value error problem please help me
@PikoCanFly
3 ай бұрын
It might be related to your email configuration (the settings regarding the email you're using).
can you post code
@PikoCanFly
2 ай бұрын
I've included a link to my Patreon page in the description where you can find the code.
hello nice content need more project on the django,can i get ur social-media id