Django app to handle promotion and marketing events.
Project description
===== Promotion Counters
Django app to handle promotion and marketing events based on it's counting and process such counters as achievements.
Quick start
-
Add "promotion_counters" to your INSTALLED_APPS setting like this::
INSTALLED_APPS = [ ..., "promotion_counters", ]
-
Run
python manage.py migrate
to create the promotion program and promotion counter models. -
Define your promotion action like this::
registration = Action( alias='registration', verbose_name='Регистрация по ссылке', )
-
Define your achievement handler like this::
@on_achievement(action='Issue promo code') def registration_handler(counter: Counter): PromoCode.objects.create( user=counter.user, code=generate_promo_code(), type=PromoCode.DISCOUNT, value=10, )
-
Create promotion program using promotion action and achievement handler in admin panel.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for django_promotion_counters-0.1.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d1f68925bfca6193f747280a1f76a7373b29832b44decd00a944466b13b09ea2 |
|
MD5 | 1b55a54276c8d5b932ad7b2c3d9ca8ac |
|
BLAKE2b-256 | 3a99dad1bfa0e3ba66d516be08ffc1a951c423251218b3e4c28343bd03f0df9a |
Hashes for django_promotion_counters-0.1.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 724f1bc716a6e57da32d729381e5a84b7cf912d10d9aeb8994211737f16225f8 |
|
MD5 | 20d966eb0404642246dcb04ad55714db |
|
BLAKE2b-256 | 2b661f625d67dbdfc7fa217c4a5c18096f146d66d28dbfa01f50e7d6a3921a18 |