我正在尝试在我的项目中使用allauth和rest-auth,并尝试使用allauth中的内置函数进行电子邮件验证,但我得到了以下结果:
settings.py
ACCOUNT_EMAIL_VERIFICATION = 'mandatory'
ACCOUNT_EMAIL_REQUIRED = True
urls.py
urlpatterns = [
re_path(r'^', include('rest_auth.urls')),
re_path(r'^registration/', include('rest_auth.registration.urls')),
]
rest_auth.urls
和rest_auth.registration.urls
中。 - Oluwafemi Suledjango_allauth
的account.urls
。 - Oluwafemi Sule