使用django_registration框架实现用户的注册与激活

Python59

1、前言

本节内容是在以下环境中实现的。

python version: 3.7

Django version: 3.1.1

Django-registration version: 3.1.1

如版本不一致,可能导致配置内容不兼容而造成不能正常运行。

2、安装与配置

安装比较简单,可以在自己的虚拟环境中执行:

pip install django-registration

上述框架安装完成后,用户可以自行在网站上注册,并通过电子邮件启用其帐户,只要他们进行了一些设置和更正。一切都是自动完成的,无需网站管理员执行其他操作。(当然,也可以定制。目前主要使用学习框架,而不是定制)

[En]

After the installation of the above framework is completed, users can register on the website by themselves and enable their accounts via email as long as they make some settings and corrections. Everything is done automatically, without the need for the website administrator to perform additional operations. (Of course, it can also be customized. At present, the learning framework is mainly used instead of customization)

输入验证码查看隐藏内容

扫描二维码关注本站微信公众号 Johngo学长
或者在微信里搜索 Johngo学长
回复 svip 获取验证码
wechat Johngo学长