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' and 'wagtail_crx_block_frontend_assets' to the INSTALLED_APPS list in the settings/base.py
INSTALLED_APPS = [
# This project
'website',
# CodeRed CMS
'coderedcms',
'bootstrap4',
...
'wagtail_crx_block_frontend_assets',
'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
File details
Details for the file crx_hslayers-4.0.0.tar.gz
.
File metadata
- Download URL: crx_hslayers-4.0.0.tar.gz
- Upload date:
- Size: 11.5 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 41bb7f0240e7f27d5b37e1db8e93b4faee81415f0c159986dcb19fccbfd8fb7e |
|
MD5 | 14b9dd9456e7045f37e21b89eddb556e |
|
BLAKE2b-256 | 97d44787052b8c76ff067770b187de5fb9d4e7b225676cef85c8a10e71d81993 |
File details
Details for the file crx_hslayers-4.0.0-py3-none-any.whl
.
File metadata
- Download URL: crx_hslayers-4.0.0-py3-none-any.whl
- Upload date:
- Size: 11.7 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0d6aa0a7bf2f4caecff41e1c40d32218f21281cbc2ebc33c4057484bfc8fcce8 |
|
MD5 | 743dcfd573ab5671843d77675df55d3c |
|
BLAKE2b-256 | 8c918722bdcb15939c97e3ba6ba2012324bf677e148fc4ddda14e41a488caa1f |