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 <soumenkhatua...@gmail.com>
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+unsubscr...@googlegroups.com<mailto:django-users+unsubscr...@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<https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgroups.google.com%2Fd%2Fmsgid%2Fdjango-users%2FCAPUw6WaQro%253DxhcjdB7am-LdtF%252BSQ02cgePiXs2x4WeJrJNtRwg%2540mail.gmail.com%3Futm_medium%3Demail%26utm_source%3Dfooter&data=01%7C01%7Cbrian.maher%40kcl.ac.uk%7C22662bb26c4245a8981808d770a2f6dc%7C8370cf1416f34c16b83c724071654356%7C0&sdata=9QWv52WQu2Cqfhvaiz6ArTdqLWIjX%2FVgeStyYbw5OCk%3D&reserved=0>.

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/DB6PR0302MB2663BEBFDA75EC58B1DCDE18A94B0%40DB6PR0302MB2663.eurprd03.prod.outlook.com.

Reply via email to