Django Custom User Model | Email as Username | Phone as Username | Authentication Example |Code Band
Автор: Code Band
Загружено: 2020-05-26
Просмотров: 31115
In this video, I'm gonna be talking about making a custom user model in Django. We will show you email authentication as well as phone authentication in Django. We will first make a custom user model that inherits from abstract user (or abstractbaseuser) and add a new email field which is unique (or phone number field which is also unique). We will then set the username field to be email (or phone) and also we will set the required fields to be empty. Then we will make our own custom model manager and implement our own _create_user, create_user and create_superuser methods which are email based (or phone based). We will then create a new superuser and then refactor the admin template to adapt to the new email based authentication.(or phone number based authentication). We will then make registration and login views and urls which are also email based (or phone based). For the registration view, we will build our own custom form which inherits from the built in user creation form.
Subscribe | Code Band
Github Guide : https://github.com/akjasim/cb_dj_cust...
Full Playlist : Django Authentication | The easiest and actual way of doing it : • Django Authentication Tutorial
Other videos in Code Band:
Django Relationships | Explained with Example by Code Band : • Django Relationships | Explained with Exam...
Custom Model Manager & Model QuerySet in Django : • Custom Model Manager & Model QuerySet in D...
Render Django Form Manually : Make Custom Form with Form Validations - • Render Django Form Manually - Make Custom ...
Generic Class Based Views in Django | Introduction & Create View in Django | Learn by Example | CRUD : • Generic Class Based Views in Django | Intr...
How to Deploy Django Project on Heroku for Free : • How to Deploy Django Project on Heroku for...
Connect Django with MySQL : • How to Connect Django With MySQL Database ...
Instagram Automation using Python : • Instagram Automation using Python | Web Au...
Top 5 Programming Languages to Learn in 2020 : • Top 5 Programming Languages to Learn in 20...
:) You Can Find Me On:
My Website -
Linkedin - / akjasim
Github - https://github.com/akjasim/
Facebook - / jasimakjasim
Twitter - / akjasim
Instagram - / jasim_ak
Доступные форматы для скачивания:
Скачать видео mp4
-
Информация по загрузке: