crx-hslayers-2.1.5
توضیحات
HSLayers-NG integrated into Wagtail CMS with Codered
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | crx-hslayers-2.1.5 |
| نام | crx-hslayers |
| نسخه کتابخانه | 2.1.5 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | - |
| ایمیل نویسنده | Plan4All <h4e@lesprojekt.cz> |
| آدرس صفحه اصلی | - |
| آدرس اینترنتی | https://pypi.org/project/crx-hslayers/ |
| مجوز | - |
# HSLayers-NG map widget for Wagtail CodeRed CMS
Note: Has npm dependency on [HSLayers-NG](https://www.npmjs.com/package/hslayers-ng-app) that gets automatically installed into static files. `python manage.py collectstatic` must be executed for the module to correctly locate the HSLayers bundles.
## Instalation
1. Install this package from PyPi using folowing command:
```
$ pip install crx-hslayers
```
2. Add 'hslayers' to the INSTALLED_APPS list in the settings/base.py
```
INSTALLED_APPS = [
# This project
'website',
# CodeRed CMS
'coderedcms',
'bootstrap4',
...
'crx_hslayers'
]
```
3. Install HSLayers app package from npm
```
cd ./static/hslayers
npm install
```
4. Use crx_hslayers in any of your Wagtail models and migrate properly
5. Collect static files from crx-hslayers to your Wagtail site
```
$ python3 manage.py collectstatic
```
6. Restart Wagtail
7. New HSLayers blocks are added to the CMS
* HSLayers map
* Clima map
## Development
Update semantic version of the package
Run test update without commiting
```
$ bumpver update --patch(--minor|--major) --dry
```
Run update and commit the changes to the repo
```
$ bumpver update --patch(--minor|--major)
```
نیازمندی
| مقدار | نام |
|---|---|
| - | json5 |
| >=1.0.0 | coderedcms |
| >=0.1.2 | pynpm |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.7 | Python |
نحوه نصب
نصب پکیج whl crx-hslayers-2.1.5:
pip install crx-hslayers-2.1.5.whl
نصب پکیج tar.gz crx-hslayers-2.1.5:
pip install crx-hslayers-2.1.5.tar.gz