Django: Implementing a referral program

后端 未结 4 1643
深忆病人
深忆病人 2021-02-13 21:07

I have an ecommerce website that works in a classical way: people sign up, buy a product with their CC.

It uses the default Django auth system for users and registration

4条回答
  •  生来不讨喜
    2021-02-13 21:41

    Define a special set of URLs (in your urls.py) for referral links. Pass them through a Python function that registers the referral and then send them to the normal view with the referral number as a parameter.

    Is this what you had in mind, or what else would you like to know?

提交回复
热议问题