我无法通过激活链接激活用户。
如何正确配置路径来处理他们的请求?
我的配置:
DJOSER = {
'PASSWORD_RESET_CONFIRM_URL': 'api/v1/auth/users/password/reset/confirm/{uid}/{token}',
'USERNAME_RESET_CONFIRM_URL': 'api/v1/auth/users/username/reset/confirm/{uid}/{token}',
'ACTIVATION_URL': 'api/v1/auth/users/activate/{uid}/{token}',
'SEND_ACTIVATION_EMAIL': True,
'SEND_CONFIRMATION_EMAIL': True,
'SERIALIZERS': {},
# 'USER_ID_FIELD': '',
'LOGIN_FIELD': 'username',
'USER_CREATE_PASSWORD_RETYPE': True,
'SET_USERNAME_RETYPE': True,
'USERNAME_RESET_CONFIRM_RETYPE': True,
'SOCIAL_AUTH_ALLOWED_REDIRECT_URIS': [],
'HIDE_USERS': True,
'EMAIL': {
'activation': 'api.email.ActivationEmail',
'confirmation': 'api.email.ConfirmationEmail',
'password_reset': 'api.email.PasswordResetEmail',
'password_changed_confirmation': 'api.email.PasswordChangedConfirmationEmail',
'username_changed_confirmation': 'api.email.UsernameChangedConfirmationEmail',
'username_reset': 'api.email.UsernameResetEmail',
}
}
path('auth/', include('djoser.urls')),
path('auth/', include('djoser.urls.jwt')),
path('auth/', include('djoser.urls.authtoken')),