Skip to content

Commit 5a6bece

Browse files
committed
add installation rst
1 parent eefe71c commit 5a6bece

File tree

2 files changed

+70
-5
lines changed

2 files changed

+70
-5
lines changed

docs/index.rst

Lines changed: 25 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,31 @@ Welcome to django-referral-system's documentation!
1010
:maxdepth: 2
1111
:caption: Contents:
1212

13+
installation
1314

1415

15-
Indices and tables
16-
==================
16+
Key Features
17+
============
1718

18-
* :ref:`genindex`
19-
* :ref:`modindex`
20-
* :ref:`search`
19+
* **Promoter Management**: Easily create and manage promoters who can invite referrals to join your platform.
20+
* **Referral Tracking**: Promoters can track their list of referrals, including invitation details, sign-up status, and more.
21+
* **Earnings Monitoring**: Promoters can view their recent earnings, including commissions from successful referrals.
22+
* **Commission-Based Rewards**: Promoters earn money by receiving commissions from referrals they invite, with configurable commission rates.
23+
* **Customizable Payout Methods**: Promoters can set and update their preferred payout methods and minimum withdrawal balances.
24+
* **Referral Link Creation**: Generate unique referral links that promoters can share to invite others to the platform.
25+
* **Referral Program Flexibility**: Only one referral program can be active at a time, allowing for focused and streamlined referral management.
26+
* **Detailed Payout History**: Promoters can view their full payout history, allowing for transparency and easy tracking of payment status.
27+
* **Click Tracking**: Keep track of how many times a referral link has been clicked.
28+
29+
.. note::
30+
For detailed setup instructions, see the :ref:`installation` page.
31+
32+
License
33+
=======
34+
35+
This package is licensed under the MIT License. See the LICENSE file for more details.
36+
37+
Contributing
38+
============
39+
40+
If you find any issues or have suggestions, feel free to open an issue or submit a pull request.

docs/installation.rst

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
Installation Guide
2+
==================
3+
4+
Follow these steps to install and set up `django-referral-system`:
5+
6+
1. Install the package via pip:
7+
8+
.. code-block:: bash
9+
10+
pip install django-referral-system
11+
12+
2. Add referrals to your `INSTALLED_APPS` in `settings.py`:
13+
14+
.. code-block:: python
15+
16+
INSTALLED_APPS = [
17+
# other apps
18+
'referrals',
19+
]
20+
21+
3. Add to `urls.py`:
22+
23+
.. code-block:: python
24+
25+
from django.urls import path, include
26+
27+
urlpatterns = [
28+
# Other URL patterns...
29+
path('referrals/', include("referrals.urls")),
30+
]
31+
32+
4. Apply Migrations:
33+
34+
.. code-block:: bash
35+
36+
python manage.py migrate
37+
38+
5. Create a Referral Program:
39+
40+
After installation, you can create a new referral program using the provided management command.
41+
If this program is set to active, any previous active referral programs will be deactivated automatically.
42+
43+
.. code-block:: bash
44+
45+
python manage.py create_referral_program --name="My Referral Program" --commission-rate=5.00 --min-withdrawal-balance=10.00

0 commit comments

Comments
 (0)