我正在使用Django和React创建一个am。我已经使用 rest-framework 在 Django 中创建自定义用户模型 api,但我对整个登录和注册系统感到困惑。我们是在 Django 还是 React 中创建登录和注册模块。 任何人都可以指导我完成它,或建议任何教程。
您在 React 中创建模板(登录、注册等页面(并将它们连接到 DRF。有多种方法可以执行身份验证。查看 DRF 上的身份验证文档。https://django-rest-framework.org/api-guide/authentication