No project description provided
Project description
Garpix ProfitBase
Пакет интеграции с profitbase.ru
Быстрый старт
Установка:
pip install garpix_profitbase
Добавьте garpix_profitbase в INSTALLED_APPS:
# settings.py
INSTALLED_APPS = [
# ...
'garpix_profitbase',
]
Также, добавьте переменные окружения (файл .env) значениями, полученными от profitbase.ru:
PROFITBASE_API_KEY=app-?????????
PROFITBASE_CLIENT_NAME=???????
PROFITBASE_COMPANY_ID=????
ENABLE_GARPIX_AUTH=False
Также, в settings.py необходимо добавить миксины:
GARPIX_PROFITBASE_CITY_MIXIN = 'garpix_profitbase.models.empty_mixin.EmptyMixin'
GARPIX_PROFITBASE_HOUSE_MIXIN = 'garpix_page.models.BasePage'
GARPIX_PROFITBASE_HOUSE_FLOOR_MIXIN = 'garpix_profitbase.models.empty_mixin.EmptyMixin'
GARPIX_PROFITBASE_HOUSE_SECTION_MIXIN = 'garpix_profitbase.models.empty_mixin.EmptyMixin'
GARPIX_PROFITBASE_PROJECT_MIXIN = 'garpix_page.models.BasePage'
GARPIX_PROFITBASE_PROPERTY_MIXIN = 'garpix_page.models.BasePage'
GARPIX_PROFITBASE_SPECIAL_OFFER_MIXIN = 'garpix_profitbase.models.empty_mixin.EmptyMixin'
GARPIX_PROFITBASE_LAYOUT_PLAN_MIXIN = 'garpix_profitbase.models.empty_mixin.EmptyMixin'
Если вам необходимо, чтобы помещения отправлялись на дальнейшую обработку при удалении/добавлении/изменении акции, можно указать путь к функции.
# example:
GARPIX_PROFITBASE_RECALCULATE_NEW_PRICE = 'app.service.recalculate_new_price'
RECALCULATE_NEW_PRICE Нужно обратиться к администраторам profitbase.ru чтоб они добавили ваш ip в белый список.
Использование
Для получения данных от profitbase.ru используйте следующую manage.py команду:
python3 backend/manage.py profitbase_update
Changelog
Смотри CHANGELOG.md.
Contributing
Смотри CONTRIBUTING.md.
License
Developed by Garpix / https://garpix.com
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file garpix_profitbase-1.13.0.tar.gz
.
File metadata
- Download URL: garpix_profitbase-1.13.0.tar.gz
- Upload date:
- Size: 23.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f48698d2369fdc5a28a38959588d505750d8b00e449964cb9d59b44338bfc511 |
|
MD5 | c354ca5351f8dd7d8ce6f6cbb88a4755 |
|
BLAKE2b-256 | 9523558d081834ead9907bdf5349204ffcbf843add83818fcddcc0e0019e1890 |
File details
Details for the file garpix_profitbase-1.13.0-py3-none-any.whl
.
File metadata
- Download URL: garpix_profitbase-1.13.0-py3-none-any.whl
- Upload date:
- Size: 38.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 06b326a7bfcb998a40dfd058af7ef2d6d7d0c0cb28fb99e8f8f9ef5ff50c27dd |
|
MD5 | 26b96ffeee7568431d843c7a0d458331 |
|
BLAKE2b-256 | aa481edc7f777026e715353caa256ea2b8ce51aee22b8199aa17e36dab7d1f0a |