Skip to main content

A Django app for managing referral programs, promoters, referrals, and tracking referral performance with advanced features like commission setting, invitation management, and Wise payouts.

Project description

django-referral-system

A Django app for managing referral programs, promoters, referrals, and tracking referral performance with features like commission setting, invitation management, and Wise payouts.

Documentation

Full documentation is available at Read the Docs.

Features

  • Promoter Management: Easily create and manage promoters who can invite referrals to join your platform.
  • Referral Tracking: Promoters can track their list of referrals, including invitation details, sign-up status, and more.
  • Earnings Monitoring: Promoters can view their recent earnings, including commissions from successful referrals.
  • Commission-Based Rewards: Promoters earn money by receiving commissions from referrals they invite, with configurable commission rates.
  • Customizable Payout Methods: Promoters can set and update their preferred payout methods and minimum withdrawal balances.
  • Referral Link Creation: Generate unique referral links that promoters can share to invite others to the platform.
  • Referral Program Flexibility: Only one referral program can be active at a time, allowing for focused and streamlined referral management.
  • Detailed Payout History: Promoters can view their full payout history, allowing for transparency and easy tracking of payment status.
  • Click Tracking: Keep track of how many times a referral link has been clicked.

Installation

  1. Install the package via pip:
pip install django-referral-system
  1. Add referrals to your INSTALLED_APPS in settings.py:
INSTALLED_APPS = [
    # other apps
    'referrals',
]
  1. Add to urls.py
from django.urls import path, include

urlpatterns = [
    # Other URL patterns...
    path('referrals/', include("referrals.urls")),
]
  1. Apply Migrations
python manage.py migrate
  1. Create a Referral Program
    After installation, you can create a new referral program using the provided management command: If this program is set to active, any previous active referral programs will be deactivated automatically.
python manage.py create_referral_program --name="My Referral Program" --commission-rate=5.00 --min-withdrawal-balance=10.00

License

This package is licensed under the MIT License. See the LICENSE file for more details.

Contributing

If you find any issues or have suggestions, feel free to open an issue or submit a pull request.

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-referral-system-0.1.1.tar.gz (20.8 kB view details)

Uploaded Source

File details

Details for the file django-referral-system-0.1.1.tar.gz.

File metadata

  • Download URL: django-referral-system-0.1.1.tar.gz
  • Upload date:
  • Size: 20.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.12

File hashes

Hashes for django-referral-system-0.1.1.tar.gz
Algorithm Hash digest
SHA256 e16ce9874548c368a89958781001062fdc279376c0725503bf4da0d76cec5099
MD5 5fb434df5f08989df100a0f9ecab47d1
BLAKE2b-256 c803d8d8df32774d48bcf22e3595dcc3b7aadb7cee10e7d0048ed14a9286f4b3

See more details on using hashes here.

Supported by

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