Replies: 1 comment
-
The
In your case, that means that
This is a cycle. To break that, you can place |
Beta Was this translation helpful? Give feedback.
-
The
In your case, that means that
This is a cycle. To break that, you can place |
Beta Was this translation helpful? Give feedback.
-
Hello everyone. I am using Django 4.2.9 and Django-allauth 0.59.0
My settings.py is like this:
My forms.py is like this
I get a type error
django.core.exceptions.ImproperlyConfigured: Error importing form class Apps.Users.forms: "cannot import name 'SignupForm' from partially initialized module 'allauth.account.forms' (most likely due to a circular import)
If my form stops inheriting from
allauth.account.forms.SignupForm
so that it inherits fromdjango.forms.ModelForm
, I get an error of typedjango.core.exceptions.ImproperlyConfigured: The custom signup form must offer a def signup(self, request, user) method
I don't know what to do anymore, if you could help me to know how to integrate this version of django-allauth, I would appreciate it.
----- EDIT -----
I have removed the birth_date field from models.py and forms.py, I have upgraded to django 5.0, and now it works, but, I have to save the user's birth date, is there any solution for this?
NOTE
django-allauth 0.59.0 does not work with django-countries 7.5.1, it gives me an error like this
AttributeError: 'BlankChoiceIterator' object has no attribute '__len__'
Beta Was this translation helpful? Give feedback.
All reactions