Django-Registration: Email as username
Dear fellow Django Coder, I think this is the best way to do it. Good luck! First step, is to create the form you’d like to use. project/accounts/forms.py from django import forms from registration.forms import RegistrationForm from django.contrib.auth.models import User class Email(forms.EmailField): def clean(self, value): super(Email, self).clean(value) try: User.objects.get(email=value) raise forms.ValidationError(“This email is already registered. … Read more