Custom Django User Model // DJANGO Tutorial

preview_player
Показать описание
How to Create a Custom Django User Model

Chapters:
0:00:00 - Welcome
0:00:52 - Before we get started
0:03:47 - Create the Abstract Base User
0:17:25 - Create the User Model Manager
0:17:25 - Change Auth User Model to our Custom Model
0:27:14 - Reload the Database with Fixtures
0:34:00 - Forms & Admin for our Custom User
0:43:29 - Add a Required Field to the User Model
0:50:47 - Update Login & Register Forms
0:56:28 - Login & Register Views

-----

Amazing Starts Small. Learn to build great products with code.

-----

My equipment:
Рекомендации по теме
Комментарии
Автор

Should I update this video? It's 2022 -- perhaps it's time? Please comment!

CodingEntrepreneurs
Автор

Justin, you are the man! Really appreciate this upload bra!

halcyon
Автор

Man, you are making Django even more pupular, making this awesome, great detailed but complete tutorials. Keep going.

carminetambascia
Автор

Finally, someone from dev world who is not trolling with soft skill videos, and providing useful content.Well done, Sir.

besllu
Автор

Where have I been since this video created? This video is great and save my time a lot. Especially the Fixtures concept. Thx bro.

drifting_cognition
Автор

YOU ARE THE BEST! 👏🏻👏🏻👏🏻👏🏻 That was some goddamn awesome explanation.

irfanshaik
Автор

Much appreciation for this video Justin! I learnt a lot

theophiluschimwanda
Автор

thank you so much man. respect for your work

devshah
Автор

just found you sitting here with all i need exactly! i'm so frustrated with this problem from days. well thanks to angels like you on earth to save my a**. appreciate your work again thanks man!

ankushpaul
Автор

Really helpful video man. I don't know how this video doesn't have the likes quantity that it deserves I just want to tell you that you got a new sub now

luisenriqueortizcastillo
Автор

Wow. This is a brilliant explanation. Thank you very much

supersonic
Автор

After disliking few youtubers, I am feeling fortunate by pressing the like button

avijitpaul
Автор

hey.. best tutorial ever on youtube.. n i can say coding entrepreneur is the best resource to learn django.. ❣️❣️💪🏾

daxitpatel
Автор

Hi, I'm very confused with the whole staff admin thing. Do we not create the regular user? From what I've read staff and admin can log in to the admin side. I'm trying to create a User Model where user can be one of 3 roles:
- Course Chair
- Course Creator
and finally
- Admin.
Only Admin can log in to the admin page.

So in my model, do I do:
is_course_chair
or
is_staff
or
nothing?

Omni_G
Автор

any tutorial about how to adding logo in admin with name thank you...

darkryanpetroniverse
Автор

I thought the User had much more than 3 fields. e.g is_active, is_staff, username, email, passwprd, so what's all this about with only 3 fields?

If the default User model is extended when you use AbstractUser then shouldn't it also inherit the rest of the fields that come with the User model?

swiffty
Автор

Thank u very much! You helped me a lot, I was getting crazy with this lol. But I have a question, do you have any video that teaches how to work with two forms in the same view ?
greetings from Brazil!

renzoprats
Автор

justin i buy your lots of udemy courses and let me tell you one thing..you are the mentor i always wish for..and i call you sir amd you are my teacher and i also wish that someday i will you meet you face to face..thank you sir

simulationcosmos
Автор

2023 and this is still very relevant to me thank you so much

intruder.
Автор

Hi Justin
If I use a third-party authentication service (such as oauth2) to register/login my users with their email and password, do I still need to use the custom User model on this video ?

JonesDTaylor