django-affiliate:django的会员系统

时间:2021-03-11 21:26:59
【文件属性】:
文件名称:django-affiliate:django的会员系统
文件大小:56KB
文件格式:ZIP
更新时间:2021-03-11 21:26:59
系统开源 django的会员系统 会员系统以奖励合作伙伴的访客付款。 包含具有基本功能的抽象模型,因此可以很容易地对它们进行子类化并添加自定义逻辑和关系。 注意:版本0.2.0向后与以前的版本不兼容。 例子 访客使用附属代码访问网站: http://site.com/?aid=12345 这段代码保存在他的cookie中(也支持另一种方式:在每个URL上保持aid = 12345)。 现在,每个请求对象都具有属性request.affiliate ,因此您可以访问吸引当前访客的会员,从而在需要的事件上奖励他。 属性request.affiliate很懒。 要检查该会员是否存在,请执行以下操作: if request.affiliate.exists(): # optionally check, that he is active: if request
【文件预览】:
django-affiliate-master
----MANIFEST.in(92B)
----.travis.yml(608B)
----example()
--------web_project()
--------requirements.txt(77B)
--------README.md(90B)
----HISTORY.md(1KB)
----pytest.ini(55B)
----affiliate()
--------models.py(2KB)
--------app_settings.py(988B)
--------utils.py(1KB)
--------middleware.py(3KB)
--------locale()
--------__init__.py(43B)
--------views.py(2KB)
--------admin.py(395B)
--------templatetags()
--------forms.py(969B)
----tests()
--------test_affiliate_middleware.py(7KB)
--------utils.py(2KB)
--------test_affiliate_models.py(1KB)
--------test_affiliate_views.py(1019B)
--------__init__.py(0B)
----tox.ini(638B)
----requirements_test.txt(61B)
----test.sh(68B)
----setup.cfg(22B)
----requirements.txt(17B)
----setup.py(2KB)
----.gitignore(359B)
----README.md(5KB)

网友评论