In this video, I'm gonna be showing you how to make registration logic in Django. We will leverage the power of built in Django Authentication system which provides us a UserCreationForm which is used for registering a new user in Django or we should say creating a new user. We will make an accounts application, set up basic urls and a specific register/ path and we will make use of function based view to render the UserCreationForm in GET request and in the POST request, we will call is_valid method in the form and we'll save the new user. The whole logic can be done using Class Based View in a single line of code. The built in UserCreationForm will do all form validations (field validations) such as unique username validation, password confirmation validation, Django built in password validations etc.
We will also change the UserCreationForm in such a way that it also have fields like email address, first name and last name. We will do this by creating a custom form which inherits UserCreationForm. We will also show you the outputs in Django Administration panel so that you get a clear idea of what's going around.
If you like the video, please hit the thumbs up button.
Subscribe | Code Band
Login & Logout in Django : • Django Authentication Tutorial
Django Authentication Docs : https://docs.djangoproject.com/en/3.0...
Project Repository : https://github.com/akjasim/cb_dj_auth...
Other videos in Code Band:
Custom Model Manager & Model QuerySet in Django : • Custom Model Manager & Model QuerySet...
Render Django Form Manually : Make Custom Form with Form Validations • Render Django Form Manually - Make Cu...
Django Relationships | One to One Relationship | Explained with Example by Code Band : • Django Relationships | One to One Rel...
How to Deploy Django Project on Heroku for Free : • How to Deploy Django Project on Herok...
Generic Class Based Views in Django | Introduction & Create View in Django | Learn by Example | CRUD : • Generic Class Based Views in Django |...
Connect Django with MySQL : • How to Connect Django With MySQL Data...
Instagram Automation using Python : • Instagram Automation using Python | W...
Top 5 Programming Languages to Learn in 2020 : • Top 5 Programming Languages to Learn ...
:) You Can Find Me On:
My Website - https://jasim.tech/
Linkedin - / akjasim
Github - https://github.com/akjasim/
Facebook - / jasimakjasim
Twitter - / akjasim
Instagram - / jasim_ak