[Django]-UNIQUE constraint failed: auth_user.username with registering with email

4👍

I finally figured out the causes and list them here. This can help someone who run into the same situation as me.

  1. SITE_ID in settings.py shall be changed to match the site_id in admin
  2. Add the signup in the custom sign up form. Please see here
    How to customize user profile when using django-allauth

Leave a comment