HSLayers-NG integrated into Wagtail CMS with Codered
Project description
HSLayers-NG map widget for Wagtail CodeRed CMS
Note: Has npm dependency on HSLayers-NG that gets automatically installed into static files. python manage.py collectstatic
must be executed for the module to correctly locate the HSLayers bundles.
Instalation
- Install this package from PyPi using folowing command:
$ pip install crx-hslayers
- Add 'hslayers' to the INSTALLED_APPS list in the settings/base.py
INSTALLED_APPS = [
# This project
'website',
# CodeRed CMS
'coderedcms',
'bootstrap4',
...
'crx_hslayers'
]
- Install HSLayers app package from npm
cd ./static/hslayers
npm install
-
Use crx_hslayers in any of your Wagtail models and migrate properly
-
Collect static files from crx-hslayers to your Wagtail site
$ python3 manage.py collectstatic
-
Restart Wagtail
-
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)
Manual package publishing
Delete all previous builds in the dist/* directory.
Linux:
python3 -m build
python3 -m pip install --upgrade twine
python3 -m twine upload dist/*
Windows:
py -m build
py -m pip install --upgrade twine
py -m twine upload dist/*
Use __token__
for the username and API token acquired at pypi.org for password.
Upload to Test PyPi:
python3 -m twine upload --repository testpypi dist/*
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
Hashes for crx_hslayers-3.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 70718655371589bcd1854ea9944e06bb8268845ef09b6743c39c04954cf09eac |
|
MD5 | c8c7f98d1425cadf974955f798f530c1 |
|
BLAKE2b-256 | 7fb77ead5ce19ca6d8d889f96ddc2134985473ca0121e1b518ef50708f69bcb4 |