Skip to content

Instantly share code, notes, and snippets.

@brunomichetti
Created July 1, 2022 19:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brunomichetti/645aefe416a90774e9c7264edd2fecc2 to your computer and use it in GitHub Desktop.
Save brunomichetti/645aefe416a90774e9c7264edd2fecc2 to your computer and use it in GitHub Desktop.
# Your urls file
...
from dj_rest_auth.registration.views import VerifyEmailView, ConfirmEmailView
...
urlpatterns = [
...
path(
'dj-rest-auth/registration/account-confirm-email/<str:key>/',
ConfirmEmailView.as_view(),
), # Needs to be defined before the registration path
path('dj-rest-auth/registration/', include('dj_rest_auth.registration.urls')),
path('dj-rest-auth/account-confirm-email/', VerifyEmailView.as_view(), name='account_email_verification_sent'),
...
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment