Skip to content

NoReverseMatch error in PasswordResetView.send_email #249

@lepism

Description

@lepism

When your urls are in the app and you try to send an email with your password recovery you'll get en error:

Reverse for 'account_password_reset_token' not found. 'account_password_reset_token' is not a valid view function or pattern name.

Because the method send_mail of class PasswordResetView contains the hardcode:
reverse("account_password_reset_token", kwargs=dict(uidb36=uid, token=token))

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions