一个可重用的django应用程序,用于优惠券的提取和处理。
django-promo的Python项目详细描述
#Django优惠券
啊![生成状态](https://travis-ci.org/byteweaver/django-coupons.png)
一个可重用的django应用程序,用于优惠券的提取和处理
##设置说明
通过PIP安装django优惠券: ` $ pip install django-coupons `
将“优惠券”添加到settings.py中的已安装的应用程序中。
迁移数据库:
` $ python manage.py migrate `
##优惠券支持的用例
此应用程序支持不同种类的优惠券,其兑换方式不同。 区别是由可能的兑换次数以及它们是否绑定到特定用户(甚至可能是用户列表)来定义的。
- single time (default), coupon can be used one time without being bound to an user.
- user limited, coupon can be used one time but only by a specific user.
- limit number, coupon can be used a limited number of times, by any user once.
- users list, coupon can be used by a defined list of users, each once.
- unlimited, coupon can be used unlimited times, but only once by the same user.