Skip to content

Instantly share code, notes, and snippets.

View femiir's full-sized avatar

Oluwafemi Ojo femiir

View GitHub Profile
@squio
squio / urls.py
Created June 8, 2021 08:20
Use url with uid and token generated by dj-rest-auth for actual password reset routine from django allauth
urlpatterns = [
# this path is used to generate email content for password reset request
# from dj-rest-auth API; format is same as used by default django auth so
# the generated URL must be translated to be used with allauth
path('accounts/password/reset/key/api/<uidb64>/<token>/',
user.ApiPasswordResetView.as_view(),
name='password_reset_confirm'),
]