New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AttributeError at /rest-auth/login/ #5
Comments
I'm getting the same bug. Any suggestion on how to fix? |
I just hit the same problem. You need to add 'rest_framework.authtoken' to your INSTALLED_APPS That fixed it for me. |
@things Works like a charm 👍 |
@dyzajash @things @davemerwin Thank you for reporting this, I put that point about rest_framework.authtoken in README |
Should be added to the docs as well! |
steverecio
pushed a commit
to steverecio/django-rest-auth
that referenced
this issue
Jun 3, 2020
Fix if condition in LoginSerializer
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Gist: https://gist.github.com/dyzajash/7f95c631d61b511ccbf9
Code used: https://github.com/Tivix/angular-django-registration-auth + https://github.com/dyzajash/nemu
Problem:
When I try to login I can GET form but I can't POST it. In browser it gives me "type object 'Token' has no attribute 'objects'" error, and in console.log i got 500 (INTERNAL SERVER ERROR)
SYSTEM: precise32 VagrantBox
The text was updated successfully, but these errors were encountered: