I think you can define your own User model and then you can define it without username. You can also set the email address for login and also as the username field. Take a look at Speedy Net:
https://github.com/speedy-net/speedy-net https://github.com/speedy-net/speedy-net/blob/master/speedy/core/accounts/models.py#L160 https://github.com/speedy-net/speedy-net/blob/master/speedy/core/accounts/models.py#L215 https://github.com/speedy-net/speedy-net/blob/master/speedy/core/settings/base_with_login.py#L26 אורי u...@speedy.net On Wed, Apr 3, 2019 at 12:12 AM Soumen Khatua <soumenkhatua...@gmail.com> wrote: > Hi folks, > > I want to remove username field from django.contrib.auth.User please tell > me, how I can do that and also set email address as a username in inbuilt > login form??? > > > Thank you. > >> -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to django-users+unsubscr...@googlegroups.com. > To post to this group, send email to django-users@googlegroups.com. > Visit this group at https://groups.google.com/group/django-users. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/CAPUw6WZY-1Viu0gmgU4yuKZ6kt77oQP_4bQRJ3YE7N5WGS5Qfw%40mail.gmail.com > <https://groups.google.com/d/msgid/django-users/CAPUw6WZY-1Viu0gmgU4yuKZ6kt77oQP_4bQRJ3YE7N5WGS5Qfw%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CABD5YeFLBNMsdyopMEnie8cNybq0UZWzJBGSqsagtb9kbBZYbQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.