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)
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
crx_hslayers-3.0.0b3.tar.gz
(20.3 MB
view hashes)
Built Distribution
Close
Hashes for crx_hslayers-3.0.0b3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 54db9d333ee416cc9a5c49c2a44d6abfd6933c5794273a3e867ae196eb80202b |
|
MD5 | 9deacc3594f4ad1d0a3b16c23e0cfc6b |
|
BLAKE2b-256 | cabf4ca408aeeba2fb4c854f9fa8e4bbca1b9ee9a9359a359494b6b04c3f286b |