通过邀请注册

django-inviting的Python项目详细描述


注意!

此程序包不再维护。

构建在django-registration之上,django inviting通过邀请处理注册。

功能

  • 邀请可以是可选的,也可以要求注册。
  • 管理集成
  • 添加具有自定义性能和奖励的可用邀请 算法。(仅限邀请模式)

安装

此应用程序依赖于django-registration

  1. "django-inviting"目录添加到python路径。
  2. "invitation"添加到中找到的INSTALLED_APPS元组 你的设置文件。
  3. 在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}$.

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
jenkins在java代码的csv中使用前导零传递数字   终止java应用程序javaw。exe eclipse   java平均字长。文本   java在事务中关闭连接时会发生什么?   java如何为rich faces extendedDatatable启用可调整大小的列?   SpringJavaWebApp头nosniff不适合js和css文件   Java:抛出异常   java获取拒绝ArrayList中存在的用户名的代码。   关于编写JNDI服务提供者的java教程   java Android emulator电子书示例已停止   java如何防止双向关系中的循环   在Java中,如何将接口的实现作为变量传递给方法?   java有没有办法通过注释来监听CoreNLP处理的进度?   java Eclipse错误:导入项目时“无法读取项目描述文件”   java为什么findViewById返回null?