Hello everyone. In my application the login is done by email and not by a username. Is it advisable to create a custom model of the User model or is it possible to just copy the email field to the username?
Because currently the username field is empty and I get the following console output:
django.db.utils.IntegrityError: UNIQUE constraint failed: auth_user.username
Which I understand that I get it because when the first user registers, the username field is left blank.
Is it advisable to copy what goes in the email field in the username field?