Creating a Custom User Model (Django)

preview_player
Показать описание

In this video I show you how to build a custom User model using AbstractBaseUser in Django.

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

well done. first recent vid that was clear enough to understand while stoned. subscribed

josemadarieta
Автор

Your voice is so clear in respect to other videos, you are doing good work, keep posting, Good luck from India🙂

AjaySharma-jvqn
Автор

Wow, and it worked first time. This is a first for me. Usually I follow a tutorial, misunderstand the docs for a bit, misunderstand the tutorial, and then stay up until 4am trying to get stuff to work only to give up and get it working within half an hour the following day because I missed some detail.

hitlermugabetashtwin
Автор

The best Django tutorials all Over the Internet. Thank you, Sir

TECHINSPEC
Автор

If anyone wanna learn how Custom User model works. Then this is the best video. **Subscribed

abilashk
Автор

tks man, i falow all videos since i find your channel, great leasons tks for all.

fabrizioalmeida
Автор

I was on the verge of giving up the project because I don't know how to do this until I saw this and I checked. The explanation is so clear. Thank you for this you earned a sub and a fan <3

Speedstackingboy
Автор

You are the best YouTuber where we can get all things about Django. Thanks a ton buddy.

bsmaheshkumar
Автор

I am a fan of this channel!! thanks to Dennis Ivy for introducing me to this channel.

aaqidmasoodi
Автор

Please enter the correct username and password for a staff account. Note that both fields may be case-sensitive.

fataraz
Автор

Did I miss the part where you dealt with these? Cause mine wont even load server - 3 issues 0 silenced.
<class (admin.E019) The value of 'filter_horizontal[0]' refers to 'groups', which is not an attribute of 'website.User'.
<class (admin.E019) The value of 'filter_horizontal[1]' refers to 'user_permissions', which is not an attribute of 'website.User'.
<class (admin.E116) The value of 'list_filter[3]' refers to 'groups', which does not refer to a Field.

Switching to AbstractUser instead of Base seemed to fix it - does that just bring the rest of the previous user model, anything that was not altered, into this user model? Thanks!

whoisntwhoisit
Автор

You are trying to add the field 'date_joined' with 'auto_now_add=True' to account without a default; the database needs something to populate existing rows.

DhineshDk
Автор

thanks to you i can make custom user, i was asked to do in my freelance and i was used to usercreaton form. insta subscribed

jamikemichelohia
Автор

why user = self.model() in manager?
why using=self.__db while saving?
why you added password=password for create_superuser but used set_password for create_user(), what's the difference and when to use which?

omparikh
Автор

Great job. But bro what about the debug part? you can't skip it like that. how do we correct the code? we need that ginger taste part. Thanks and keep it up!!

wilez
Автор

thank you so much brother i was in search of this kind of video.it really put a lot of value to my life thankyou so much.subscribed

fforfun
Автор

shows an error
Account has no field named 'user_email'

pruthvihingu
Автор

Hi Mitch, I followed the tutorial, but some how my Add User view still shows just Username, Password and no email. What am i doing wrong please?

olayemii
Автор

Can you add a relationship field from this user model to another existing model. like for example a bank app .when user who can register with the app must have a bank account with d bank so in that case before signup user must have an already existing acct.so we have Account model and a User model so can a OnetoOneField be in this User model with that Account model ?

henrycodingstack
Автор

i have followed the same step and code but after admin login i got the is error " 'Account' object has no attribute 'get_all_permissions' ". how to solve please help me.

rajendrakumar