Name | Description | Required | Possible Values |
---|---|---|---|
REYDEN_X_LOGIN | Reyden-X Username/Email | Required | |
REYDEN_X_PASSWORD | Reyden-X Password | Required | |
SECRET_KEY | Secret Key | Required | |
DEBUG | Debug Mode | Required | True, False |
CURRENCY | Currency Code (Default: dollar) | Required | dollar, euro, ruble |
ALLOWED_HOST | Domain | Required | |
DB_NAME | Database Name | Optional | |
DB_USER | Database User | Optional | |
DB_PASSWORD | Database Password | Optional | |
DB_HOST | Database Host (Default: localhost) | Optional | |
DB_PORT | Database Port (Default: 5432) | Optional |
If no environment variables are set for the database connection, 'sqlite' will be used.
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
./manage.py makemigrations
./manage.py migrate
./manage.py createsuperuser
./manage.py sync_balance
./manage.py sync_tariffs --platform=twitch
./manage.py sync_tariffs --platform=youtube
./manage.py sync_orders --platform=twitch
./manage.py sync_orders --platform=youtube
./manage.py sync_tasks
- Add a new user
- In Control Panel, create a new group for users
- For a new user group, select the desired rights and add users to this group
- Core | user | Can view the cost in the tariffs
- Core | user | Can view the balance on the main balance
- Core | user | Can view Twitch orders
- Core | user | Can view YouTube orders
- Core | user | Can create Twitch orders
- Core | user | Can create YouTube orders
- Core | user | Can view other Twitch orders
- Core | user | Can view other YouTube orders
- Core | user | Can edit other Twitch orders
- Core | user | Can edit other YouTube orders
You can modify this template to suit any of your own tasks, and add your own changes to the business logic.
Useful links: