Thanks friend for the content, I have a question how I can use the username instead of the email, in the django administrator since I need to know the name of the user who is making a purchase, and for the user registration I request the user the first and last name, thanks in advance
How you can use username: By default, Django/DRF takes username. So, no major tweaking needed. While overriding Django built-in User class, your User class should be as follows: Class User(AbstractBaseUser, PermissionsMixin): username = models.CharField(.......) #your other fields here... USERNAME_FIELD = 'username'
Good short and useful video, many thanks. Running migration at the start before building a custom user model caused some issues, if deleting db , migrations and pycach doesn't solve the issues use 'python manage.py migrate --run-syncdb' and it should behave as intended.
So beautiful and sweet, best way I've seen, thanks alot for this. I've been cracking my head over on how to get this done. I just hope it as easy it seems when I try it
Very descriptive narration. Thank you. Just subscribed.
Oh, you are welcome Josako!
Thank you for your subscription. More videos are on their way...
You demystified AbstractBaseUser and AbstractUser classes and so many unknown facts brother. Please take a bow. Thank you!
Thank you for your precious words.
This is the easiest method I have seen, Thank you!
Next step, create a Profile for the users
Great explanation thank you. You’ve simplified a pretty complex concept.
Glad you liked it
Very clear explanation on DRF.........please make videos on DRF .... please boss... thanks so much...
Thanks friend for the content, I have a question how I can use the username instead of the email, in the django administrator since I need to know the name of the user who is making a purchase, and for the user registration I request the user the first and last name, thanks in advance
How you can use username:
By default, Django/DRF takes username. So, no major tweaking needed.
While overriding Django built-in User class, your User class should be as follows:
Class User(AbstractBaseUser, PermissionsMixin):
username = models.CharField(.......)
#your other fields here...
USERNAME_FIELD = 'username'
Good short and useful video, many thanks. Running migration at the start before building a custom user model caused some issues, if deleting db , migrations and pycach doesn't solve the issues use 'python manage.py migrate --run-syncdb' and it should behave as intended.
So beautiful and sweet, best way I've seen, thanks alot for this. I've been cracking my head over on how to get this done. I just hope it as easy it seems when I try it
Glad you found it useful.
You made it easy for me to understand it. Thank You :)
Thank you for this nicely explained video
I am subscribed bcoz i want to learn all tutorial DRF by you.. please upload complete tutorial... please please....boss
Amazing explanation. Thanks
Thank you
joss vai
your code is not working
Amazing 👏 please make OOP video ..
Thank You!
You are welcome!
thankyou ❤
Thanks u!!!
And that's the culprit😂😂😂😂😂. ohhh poor username
Somebody got my joke! Bravo!