Custom User Model In Django | AbstractBaseUser | AbstractUser | BaseUserManager | Mastering Django

แชร์
ฝัง
  • เผยแพร่เมื่อ 12 ก.ย. 2024

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

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

    🛑Links For Other Exclusive Content👇💯-
    🔥Mastering Django Roadmap: www.letsprogressify.com/roadmaps/93f13210-efd8-4663-ad7e-ed0b70fad7f7/preview
    🚀 The Revolutionary Course - th-cam.com/play/PLLz6Bi1mIXhEE3NEaLz3xNn7JHBHNb34I.html
    👉How to create multiple user types - th-cam.com/video/ZU5yBZja8yE/w-d-xo.html
    👉User Registration, Login, and Signup (like Amazon) - th-cam.com/video/zecETlA00OA/w-d-xo.html
    👉Django Microservices and how to handle multiple user types on different architectures - th-cam.com/video/X6fXTsioRl0/w-d-xo.html
    👉Implementation of How to create multi-tenants/types on different subdomains (www for customers and services for sellers) - th-cam.com/video/TmZiVpu4uBA/w-d-xo.html&pbjreload=101

  • @bikes429
    @bikes429 3 ปีที่แล้ว +15

    Good work, you have taught this in under 30 minutes and the details covered in this video is better than other videos with more views. This 1 video is equal to 3 other videos. Thanks

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

      Thankyou........ glad to hear that you liked the video

    • @mukulverma604
      @mukulverma604 2 ปีที่แล้ว

      @@PriyanshuGuptaOfficial but i am confused with this stuff as a fresher in Django

  • @srinikethatulasi9923
    @srinikethatulasi9923 2 หลายเดือนก่อน +1

    very well explained

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

    this is the most detail and indepth video of django in whole yt
    thank U, I was looking for various explaination...

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

    I am a medical student who enjoys learning how to code. Your channel has been really helpful in helping me develop my skills. I sincerely hope that one day your channel will top all programming channels on TH-cam.

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

    Great bro keep it up 🥰😘😘

  • @rahul_singh_rajput3292
    @rahul_singh_rajput3292 3 ปีที่แล้ว +2

    amzing bro love you bro😚😚

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

    Good explanation nd good content

  • @TRYITJatinJain
    @TRYITJatinJain 3 ปีที่แล้ว +6

    Overall the content is completely awesome. Just one request is that there are some sound glitches and break between videos. Please consider it next time.

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

    Dil se Sukriya 😍😍❤❤

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

    brother a small suggestion for you, might be I am wrong . Just write the code and explain instead pasting code and explain. For beginners it's kinda hard to catch up. Your content are worth watching but if you fixed this it will be awesome.

  • @prabhatmishra8946
    @prabhatmishra8946 3 ปีที่แล้ว +2

    Keep going Man you are doing very best then others.

  • @jimteam4766
    @jimteam4766 3 ปีที่แล้ว +2

    very good bro keep it up

  • @iakkitherock
    @iakkitherock 10 หลายเดือนก่อน +1

    Amazing Share Brother 👏

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

    Wonderful & practical Django 3 course.
    Excellent teaching brother.
    👍👍👍👍👍👍

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

      Thanks brother

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

      @@PriyanshuGuptaOfficial you are welcome bro. All the best for others courses. Keep it up your free coaching. You are serving the nation. Hats off to your determination.

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

    Sad you put this video only in hindi. Would be great if you had in english as well. Great explanation your videos in english. Thank you.

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

      Will try to make english version of it

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

      @@PriyanshuGuptaOfficial Make a course. There are NO (0) courses in django under the hood. If you do it, I will certainly buy.

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

    Hello sir, the way you explain each details is awesome plz make video on rest django

  • @iamneaz
    @iamneaz 11 หลายเดือนก่อน +1

    Great tutorial.

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

    Buen video!

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

    Please make videos on Signals in Django.

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

    Lage raho .. hum tumhare saath hai 👍👍👌👌

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

    If you make the videos in English people from all over the world will be able to appreciate your work, it looks interesting and I'm looking to learn about this topic but I can't understand what you're saying and your video doesn't have subtitles, it's a pity. Greetings from Brazil.

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

    Keep up the good work 😊

  • @ravindrareddyk6588
    @ravindrareddyk6588 2 ปีที่แล้ว +1

    Hi i have created abstractuser later created a user in admin page unable to get access for login showing as invalid credential in my app

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

    Provide the source code download links.

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

      You can check other video of this series. I have provided in the description

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

      @@PriyanshuGuptaOfficial Oh. Thanks brother. I will check.

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

      OK. It will be very helpful to all.
      👍👍👍

    • @pradumnyabhor8844
      @pradumnyabhor8844 2 ปีที่แล้ว

      @@PriyanshuGuptaOfficial in which video is it provided

  • @vaibhavwankhede1496
    @vaibhavwankhede1496 6 หลายเดือนก่อน

    Great bro.

  • @abdullahamin4504
    @abdullahamin4504 2 ปีที่แล้ว

    Brother
    Request to you that please make a video how to use django custom admin panel instead django default admin templare....

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

    2 saal baad dekh raha hu fir bhi maza aa raha hai

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

    this is exactly the video that I was looking for, but unfortunately I cannot understand your accent, subtitles are needed here

  • @shah-pakistan924
    @shah-pakistan924 7 หลายเดือนก่อน

    Please if you don't mind you should that make video zero to 100 because begginers learn wanto completely basics

  • @user-rn6zc7vp3h
    @user-rn6zc7vp3h 2 ปีที่แล้ว

    great tutorial btw alt+click is not working in vscode i wanted to see predefined functions nd class

  • @hemanthraj2009
    @hemanthraj2009 2 ปีที่แล้ว

    can we use this for api can you show the crud operation for user

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

    how we can use the Django default password validator with CustomUser because it is not working by itself.

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

      from django.contrib.auth.hashers import check_password
      Then check_password(password you want to validate, user password from database)

  • @jaikishanapurva3807
    @jaikishanapurva3807 3 ปีที่แล้ว +2

    @Priyanshu, Bro it will be great if you able to provide the sample code.
    Thanks in advance and good work (y)

  • @xyz-oq1qw
    @xyz-oq1qw 2 ปีที่แล้ว

    Please make video quality 720 px atleast. Not able to see clearly on phone with 480 px. 🙏

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

    hey priyanshu can you guide me, I just want to create a loan system where a user request a loan and the admin can grant or deni for request, can you help me to come out from this request problem
    thanx

  • @souravsaxena9861
    @souravsaxena9861 2 ปีที่แล้ว

    Bro after importing or practicing code the same as yours I get the error 'cannot import name 'AbstractBaseuser' from 'Django.contrib.auth.models'' Please brother tell me fixs its.

  • @binaryreliantmind1611
    @binaryreliantmind1611 2 ปีที่แล้ว

    The description and stuff in the video are in English. But it sounds like you're speaking a different language.

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

    Bro i need refrence boook wich book did u study plz give ni guide

  • @saugatrajbhandari4247
    @saugatrajbhandari4247 3 ปีที่แล้ว +2

    when will more videos are coming out?

  • @IllevensKO
    @IllevensKO 3 ปีที่แล้ว +2

    ROSES ARE RED
    VIOLETS ARE BLUE
    TITLE IS IN ENGLISH SO VOICE SHOULD BE TOO

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

      i'm sure it's an awesome video and you're a nice person for free education though...

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

    bhai hm django me login hone k bad ek form submit krwa rhe h pr jo form ka data database me save ho rha h usko dusare user ka data overwrite kr de rha . or hm chahte h sare user ka data alag - alag user k sath save ho to ky akrna hoga

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

      Phele user ko find karo database mein se through request.user ...... then data save karo corresponding to that user

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

      @@PriyanshuGuptaOfficial thank you bhai

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

    is there anyway to make username have special characters like semi colon also

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

      Yes you can just use a regular expression to validate username by customizing the user model as I have shown here and adding a username field over there

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

    Whenever I try to add a user from the admin panel, it shows please correct the error below without highlighting anything

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

      I cant find out why are you getting the error....... even I tried on my system but I am not facing any issues ......... try to look at your custom your model, its required attributes, model manager and model admin

  • @JitenderKumar-tl7zr
    @JitenderKumar-tl7zr 3 ปีที่แล้ว +1

    There is a problem with your code.
    if we create a superuser " j@gmail.com" and a superuser "J@gmail.com"
    Two superusers get created in the admin.
    How to solve this problem

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

      Actually its not the problem in my code...... its django’s built in functions which when compare two email address they treat them as case sensitive so in order to avoid that you can either convert the email address to lower case while saving or you can make some customization when you are comparing two emails to make them both in lower case before comparing

    • @JitenderKumar-tl7zr
      @JitenderKumar-tl7zr 3 ปีที่แล้ว +2

      @@PriyanshuGuptaOfficial This line solves the issue->
      email=self.normalize_email(email).lower()

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

      @@JitenderKumar-tl7zr Great but while authenticating user for login then also if by chance your caps is opened then you will not be able to login so there also you have to again add a piece of code to make email in lower case and then check in the database

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

    how to add social login with custom user model

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

      For that you will have to use social-auth-app-django library and then you will have to register your application on respective social media

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

    waiting for djanog signals

  • @RamanKumar-ux1on
    @RamanKumar-ux1on 3 ปีที่แล้ว

    is it compulsory to create custom manager ??

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

      Yes if you are using abstractbaseuser

    • @RamanKumar-ux1on
      @RamanKumar-ux1on 3 ปีที่แล้ว +1

      Sir I have followed you video and create custom user model thankyou .
      But I am facing a issue , If I am creating a new user through admin panel then password has not been saving in hash format. I am also using set_password() like you mentioned in video.

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

      @@RamanKumar-ux1on if you have not found the solution yet just ping me on instagram

  • @joey4uandme
    @joey4uandme 5 หลายเดือนก่อน

    Please can make the English version?

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

    What does is_admin mean ?

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

      It is not is_admin ........ by default django uses is_staff and is_superuser

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

    Can you please make this content in English please.

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

    can you share git link

  • @helluci6449
    @helluci6449 2 ปีที่แล้ว

    Is he speaking English or my ears went crazy?

  • @mrm4691
    @mrm4691 2 ปีที่แล้ว

    Don't know hindi

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

    Ahista bolo, clearly enunciate karo, sentences poore bolo, soch ke bolo, aur zyada yaar yaar mat karo. Jo bolna hai usko pehle plan karo. Apne viewers ko quality do, ahista ahista credibility banegi. Pehle hi din bhao mat lo.

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

      Ok bhai.........thankyou for feedback

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

      Mujhe to sahee laga jab jo samjhana hai samjha diya sahee se
      Cases discuss ho jate to or accha hota jaisey ki ..special characters include karna ya case sensitive bana a waigarah

    • @prabhatmishra8946
      @prabhatmishra8946 3 ปีที่แล้ว +2

      Gyan dene ke tarika thoda accha ho sakta tha.

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

    Waste of time. please look another tutorial . poor information.

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

    jak nie umiesz mówić po angielsku to po co robisz filmy po angielsku...

  • @Amir-tv4nn
    @Amir-tv4nn 3 ปีที่แล้ว

    Yo you are really confusing people with what you teaching in this video. It is not complicated at all at how you are trying to teach CustomUser. You are making it more complicated adding stuff that is so unnecessary for starters. SMH

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

      You can easily find basic videos on youtube........ but I make videos that cover all cases and scenarios so that even starters can take their skills to the next level

    • @Amir-tv4nn
      @Amir-tv4nn 3 ปีที่แล้ว

      @@PriyanshuGuptaOfficial but you not doing that in this video is why I said what I said smh. You are all over the place.

  • @pride9379
    @pride9379 2 ปีที่แล้ว

    : (admin.E033) The value of 'ordering[0]' refers to 'username', which is not an attribute of 'main.CustomUser'. I'm getting this error when I was trying to make to the model. It'll great if you help.

  • @mrityunjayupadhyay7332
    @mrityunjayupadhyay7332 3 ปีที่แล้ว +2

    Good explanation nd good content