Skip to content
Advertisement

Tag: django-allauth

Password reset django-allauth and django-rest-auth

I cannot wrap my head around this problem. Read a lot of solutions but cannot seem to find the correct combination that works for me. I want to initiate a users password reset flow from within my (android/iOS) app. I think I need django-rest-auth for this to expose an API endpoint something like this: Now posting to http://127.0.0.1:8000/password/reset/ with a

Field name `username` is not valid for model

I am attempting to use rest-auth supplied serialisers to GET (*with headers) user details from the defined endpoint /rest-auth/user/ (*with headers (Content-Type: application/json Authorization: Token 1a5472b2af03fc0e9de31fc0fc6dd81583087523 )) I am getting the following traceback: https://dpaste.de/oYay#L I have defined custom user model (using email rather than username)as such: Settings as follows: Not sure how to go about correcting this error.. so that

Saving custom user model with django-allauth

I have django custom user model MyUser with one extra field: I also have according to these instructions custom all-auth Signup form class: After submitting SignupForm (field for property MyUser.age is rendered corectly), I get this error: IntegrityError at /accounts/signup/ (1048, “Column ‘age’ cannot be null”) What is the proper way to store Custom user model? django-allauth: 0.12.0; django: 1.5.1;

Advertisement