Skip to content

Token matching query does not exist #13

@GunzzGT

Description

@GunzzGT

Token is not automatically created after creating user or even superuser

I only noticed this after all the module 8 tests return error due to
rest_framework.authtoken.models.Token.DoesNotExist: Token matching query does not exist.

It seems that the token is only created when manually triggering http://api:8000/api-token-auth/ and at this point I am still new to the whole thing. Can someone help me identify the root of the error? So far I am following the course to a T except I am using windows. My suspicion is the signals.py not working but I don't know what to do at the moment.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions