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 /auth/token #122

Open
wachenpaul opened this issue Nov 22, 2022 · 1 comment
Open

AttributeError at /auth/token #122

wachenpaul opened this issue Nov 22, 2022 · 1 comment

Comments

@wachenpaul
Copy link

Hi,

I'm getting an error after sending a debug email and trying to verify it with the code. When I called localhost:8000/auth/token/ after a code was sent to me, everything worked fine, but when I submitted it, it threw an AttributeError at /auth/token/ with message type object 'Token' has not attribute 'objects' .
Is this a problem that has occurred in the past or am I missing something?
I just followed the instructions provided by this github README...

Regards,
wachenpaul

@marknotfound
Copy link

@wachenpaul Be sure follow the instructions from DRF for configuring TokenAuthentication here: https://www.django-rest-framework.org/api-guide/authentication/#tokenauthentication

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

2 participants