Abstract User, User Profile and Signals in Django (how to add extra fields to the user model)

แชร์
ฝัง
  • เผยแพร่เมื่อ 28 ต.ค. 2024

ความคิดเห็น • 32

  • @djangolessons4614
    @djangolessons4614  4 ปีที่แล้ว +2

    Another open source project of mine - Papermerge Document Management System - github.com/ciur/papermerge - keeps me very busy these days. This is why, for a while Django Lessons will receive less attention from me.
    Papermerge DMS - is my source of inspiration so to say - this is where I gained all knowledge I share on this channel.

  • @rooneymara8061
    @rooneymara8061 4 ปีที่แล้ว +7

    This channel is underrated. You should be getting a lot more views.

  • @sebastianbonilla9330
    @sebastianbonilla9330 4 ปีที่แล้ว +5

    Very clear. Love the way you explain things doing TDD. Very few people do that. Thanks

  • @AmitabhSuman
    @AmitabhSuman ปีที่แล้ว

    The django-extensions was totally new and WOW for me. I just got started and this was new. Thank you !

  • @smiley2474
    @smiley2474 3 ปีที่แล้ว +1

    Bro youre the best. i wish you good luck wherever you are!

  • @jaredfiacco1107
    @jaredfiacco1107 4 ปีที่แล้ว

    Thank you! Super helpful. I used this to figure out how to put a signal into my website, and automatically create a "new" workqueue status each time a new ticket was created.

  • @sueholder703
    @sueholder703 4 ปีที่แล้ว +2

    Brilliant! Now I finally understand the importance, thank you!

  • @sijibomiajayi2536
    @sijibomiajayi2536 4 ปีที่แล้ว +1

    YOU JUST SAVED ME BROOO!!!!

  • @LookNumber9
    @LookNumber9 3 ปีที่แล้ว

    Wow. Very well done. Thank you!

  • @amanjhurani6178
    @amanjhurani6178 4 ปีที่แล้ว +1

    You made my day....Thank you so much

  • @НиколайРюмин-й6и
    @НиколайРюмин-й6и ปีที่แล้ว

    Хэллоу, вис из гуд дессон. Сенк ю вери матч😁

  • @FitriWibowo
    @FitriWibowo 4 ปีที่แล้ว

    I really enjoyed your video. Keep up the good work 👍

  • @actionphotopassion5082
    @actionphotopassion5082 4 ปีที่แล้ว

    Ok Subscribed.
    Thank you for those explanations. Awesome

  • @shanaichika4065
    @shanaichika4065 3 ปีที่แล้ว

    Im new to this. What's the importance of AbstractUser in using it in Django?

  • @ruslanrvua
    @ruslanrvua 4 ปีที่แล้ว +1

    Clear explanation. Thanks

  • @idopshik
    @idopshik 4 ปีที่แล้ว +1

    Фёрст ту кейсэс. I like your accent.

  • @dodokwak
    @dodokwak 4 ปีที่แล้ว

    Thanks. What are the disadvantages of the extending built-in User model via AbstractUser? As far as I understand we need to adjust UserCreationForm,UserChangeForm (forms.py) and UserAdmin(admin.py) as well. (Your approach is supported by Will Vincent but Kenneth Love suggests either to use Profile (OneToOne) or create completely custom User model based on AbstractBaseUser)

    • @djangolessons4614
      @djangolessons4614  4 ปีที่แล้ว +1

      I am not aware of any disadvantages. Django documentation as well suggests to add extra fields via extending AbstractUser class (when starting new projects). I used this approach in practice without any issue.

  • @songs7566
    @songs7566 4 ปีที่แล้ว +1

    How can I extend and add more field in abstract user ??
    Like when I started a project I used abstract user but I want to extend. Can you help me in this ??

    • @djangolessons4614
      @djangolessons4614  4 ปีที่แล้ว

      If you user (XUser) class inherits from AbstractUser - and it was there since the beginning of the project - just add fields to yout XUser.

  • @ravikhatrisstuff
    @ravikhatrisstuff 4 ปีที่แล้ว

    Thanks for this video... and I have a query... how I can create user after doing abstractuser? will it be same as default user creation form or have to do something else for that...

    • @djangolessons4614
      @djangolessons4614  4 ปีที่แล้ว

      You create them as usually.For example with User.objects.create(...)

  • @AnkitTiwari-dq7qm
    @AnkitTiwari-dq7qm 2 ปีที่แล้ว

    Thanks ❤

  • @KrishnaManohar8021
    @KrishnaManohar8021 4 ปีที่แล้ว

    2:48 how can you did that graph model? can you make available to download?

  • @sankethb.k642
    @sankethb.k642 3 ปีที่แล้ว

    Life saver

  • @belyoutube9878
    @belyoutube9878 ปีที่แล้ว

    you help me very much thank you so much