Use Email Instead of Username in Django Authentication | Email Login

Поділитися
Вставка
  • Опубліковано 7 лис 2024

КОМЕНТАРІ • 29

  • @josakotech2391
    @josakotech2391 3 роки тому +5

    Very descriptive narration. Thank you. Just subscribed.

    • @codeaura5138
      @codeaura5138  3 роки тому

      Oh, you are welcome Josako!
      Thank you for your subscription. More videos are on their way...

  • @moqbulkhan4095
    @moqbulkhan4095 3 роки тому +4

    You demystified AbstractBaseUser and AbstractUser classes and so many unknown facts brother. Please take a bow. Thank you!

    • @codeaura5138
      @codeaura5138  3 роки тому

      Thank you for your precious words.

  • @JorgeRamirez01
    @JorgeRamirez01 2 роки тому

    This is the easiest method I have seen, Thank you!
    Next step, create a Profile for the users

  • @Davidkiania
    @Davidkiania Рік тому +1

    Great explanation thank you. You’ve simplified a pretty complex concept.

  • @shamshadansari2018
    @shamshadansari2018 2 роки тому +1

    Very clear explanation on DRF.........please make videos on DRF .... please boss... thanks so much...

  • @jaimemerchan9116
    @jaimemerchan9116 3 роки тому +3

    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

    • @codeaura5138
      @codeaura5138  3 роки тому

      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'

  • @amjadsaleem1270
    @amjadsaleem1270 2 роки тому +1

    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.

  • @paborlouise319
    @paborlouise319 2 роки тому +1

    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

  • @laraibkhan2517
    @laraibkhan2517 Рік тому

    You made it easy for me to understand it. Thank You :)

  • @jacobwilsonmwale1674
    @jacobwilsonmwale1674 Рік тому

    Thank you for this nicely explained video

  • @shamshadansari2018
    @shamshadansari2018 2 роки тому

    I am subscribed bcoz i want to learn all tutorial DRF by you.. please upload complete tutorial... please please....boss

  • @rubaimobarak
    @rubaimobarak 3 роки тому

    Amazing explanation. Thanks

  • @irayhanbd.
    @irayhanbd. 5 місяців тому

    joss vai

  • @JatinSharma-tu2zg
    @JatinSharma-tu2zg 2 роки тому +1

    your code is not working

  • @tusharimaran9748
    @tusharimaran9748 3 роки тому

    Amazing 👏 please make OOP video ..

  • @carsmercholdjdm680
    @carsmercholdjdm680 2 роки тому

    Thank You!

  • @rajveerparmar4129
    @rajveerparmar4129 Рік тому

    thankyou ❤

  • @NekoManAICore
    @NekoManAICore 2 роки тому

    Thanks u!!!

  • @veeramalainaidu2688
    @veeramalainaidu2688 2 роки тому

    And that's the culprit😂😂😂😂😂. ohhh poor username