Skip to main content

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

  1. Add "promotion_counters" to your INSTALLED_APPS setting like this::

    INSTALLED_APPS = [ ..., "promotion_counters", ]

  2. Run python manage.py migrate to create the promotion program and promotion counter models.

  3. Define your promotion action like this::

    registration = Action( alias='registration', verbose_name='Регистрация по ссылке', )

  4. 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, )

  5. 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

django_promotion_counters-0.1.5.tar.gz (7.6 kB view hashes)

Uploaded Source

Built Distribution

django_promotion_counters-0.1.5-py3-none-any.whl (12.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page