I maintain one project which does this with a save hook on the User model, setting the username to the email address field (with uniqueness tests, of course).
It's crude, but seems to work well and hasn't given any problems.
—
Best Regards,
Brian Maher
Senior Research Software Engineer & Systems Administrator
King's Digital Lab
VWB, 2nd Floor, Room 2.50, Strand Campus
Work: 0207 848 0511
Mobile: 07714 285086
Voip: 01702 667471
From: django-users@googlegroups.com <django-users@googlegroups.com> on behalf of Soumen Khatua <soumenkhatua258@gmail.com>
Sent: Sunday, November 24, 2019 6:55:22 PM
To: django-users@googlegroups.com <django-users@googlegroups.com>
Subject: Username as email
Sent: Sunday, November 24, 2019 6:55:22 PM
To: django-users@googlegroups.com <django-users@googlegroups.com>
Subject: Username as email
Hi Folks,
-- Any have any idea in real time how programmers manage email id as username only. Because django provide different fields for username and email id. So how I can overcome to this problem??
Thank you in advance.
Regards,
Soumen
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAPUw6WaQro%3DxhcjdB7am-LdtF%2BSQ02cgePiXs2x4WeJrJNtRwg%40mail.gmail.com.
No comments:
Post a Comment