通过邀请注册
django-inviting的Python项目详细描述
注意!
此程序包不再维护。
构建在django-registration之上,django inviting通过邀请处理注册。
功能
- 邀请可以是可选的,也可以要求注册。
- 管理集成
- 添加具有自定义性能和奖励的可用邀请 算法。(仅限邀请模式)
安装
此应用程序依赖于django-registration。
- 将"django-inviting"目录添加到python路径。
- 将"invitation"添加到中找到的INSTALLED_APPS元组 你的设置文件。
- 在urlconf中包含"invitation.urls"。
测试示例
待办事项
用法
您可以使用以下命令配置django-invitingapp的行为 设置:
INVITATION_INVITE_ONLY: | |
---|---|
Set this to True if you want registration to be only possible via invitations. Default value is ^{tt8}$. | |
INVITATION_EXPIRE_DAYS: | |
How many days before an invitation is expired. Default value is ^{tt9}$. | |
INVITATION_INITIAL_INVITATIONS: | |
How many invitations are available to new users. If ^{tt10}$ is ^{tt8}$ this setting has no effect. Default value is ^{tt12}$. | |
INVITATION_PERFORMANCE_FUNC: | |
A method that takes an ^{tt13}$ instance and returns a ^{tt14}$ between ^{tt15}$ and ^{tt16}$. You can supply a custom performance method by reference or by import path as a string. Default value is ^{tt17}$. If a custom performance function is not supplied one of the default performance functions in ^{tt18}$ will be used according to ^{tt10}$ value. | |
INVITATION_REWARD_THRESHOLD: | |
A ^{tt14}$ that determines which users are rewarded. Default value is ^{tt21}$. |