python - 将 django rest auth 与 django allauth 集成
问题描述
我正在尝试将django rest auth与django allauth 集成。
我按照他们的文档所述安装了它们,但我在配置路由时遇到了问题。
这是我在我的 urls 文件中所做的:
urlpatterns = [
re_path(r'^auth/', include('rest_auth.urls')),
re_path(r'^auth/signup/', include('rest_auth.registration.urls')),
...
]
注册工作正常,但在我收到的确认电子邮件中有一个链接。单击该链接会给出 500 状态代码,但有以下例外:
TemplateResponseMixin requires either a definition of 'template_name' or an implementation of 'get_template_names()'
我做错了什么?我应该如何配置 django rest auth 和 django allauth?有没有提供分步说明的教程(我是 django 新手)?
解决方案
推荐阅读
- spring - 例外:使用 Spring Client 对 Spring 中的 http-epoll-1 线程进行泄漏检测
- c# - 在 C# 中,表达式 x = y == z 代表什么?
- javascript - Bootstrap 4 datetimepicker - 如何在发送值之间以不同的方式显示日期格式?
- c# - 在 ASP.NET Core 3 (3.0) SPA (Angular) 中如何正确检查用户角色?
- typescript - 打字稿:为什么它有效?
- python - python stanford core NLP中的依赖解析
- javascript - 添加/删除 cytoscape 样式
- c++ - 为模板传递非类型参数参数
- java - 是否有可能以这样的方式编写文本文件,当 Java 编译器读取时,它会在某些点添加换行符?
- python - 如何处理 Robot Framework 中的弹出窗口?