[Fixed]-How do I create a proper user with django allauth?

3👍

The canonical way to create a user seems to be stuck in the SignupForm.save() method:

https://github.com/pennersr/django-allauth/blob/6b2167ca245558317be1f8881f162f4d5312eb95/allauth/account/forms.py#L401-L408

Edit: It’s actually one level higher in the SignupView, which first calls the SignupForm.save() and then calls account.utils.complete_signup(), which sends the user_signed_up signal:

https://github.com/pennersr/django-allauth/blob/6b2167ca245558317be1f8881f162f4d5312eb95/allauth/account/views.py#L227-L237

https://github.com/pennersr/django-allauth/blob/6b2167ca245558317be1f8881f162f4d5312eb95/allauth/account/utils.py#L171-L183

Leave a comment