from django import forms
from allauth.account.forms import (LoginForm, ChangePasswordForm,
ResetPasswordForm, SetPasswordForm, ResetPasswo
This happens because allauth
tries to import the given module/class you specified as signup form in your settings.py
in its account/forms.py
. (See forms.py#L186 @ github)
When you override other forms like ChangePasswordForm
in your settings.py by importing allauth
's account/forms.py
, circular import happens because allauth has already imported your forms.py
in its forms.py
To avoid this, simply move your singup form to a separate signupform.py
and change the settings accordingly. It'll work.