Skip to content
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

Closed
ghost opened this issue Jul 9, 2014 · 5 comments
Closed

AttributeError at /rest-auth/login/ #5

ghost opened this issue Jul 9, 2014 · 5 comments

Comments

@ghost
Copy link

ghost commented Jul 9, 2014

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

@davemerwin
Copy link

I'm getting the same bug. Any suggestion on how to fix?

@particleslam
Copy link

I just hit the same problem.

You need to add 'rest_framework.authtoken' to your INSTALLED_APPS
And don't forget to manage.py migrate afterwards.

That fixed it for me.

@ghost
Copy link
Author

ghost commented Jul 13, 2014

@things Works like a charm 👍

@mateusz-sikora
Copy link
Contributor

@dyzajash @things @davemerwin Thank you for reporting this, I put that point about rest_framework.authtoken in README

mariodev pushed a commit that referenced this issue Aug 30, 2016
@shredding
Copy link

Should be added to the docs as well!

steverecio pushed a commit to steverecio/django-rest-auth that referenced this issue Jun 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants