Skip to main content

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

  1. Install this package from PyPi using folowing command:
$ pip install crx-hslayers
  1. Add 'hslayers' to the INSTALLED_APPS list in the settings/base.py
INSTALLED_APPS = [
    # This project
    'website',
    
    # CodeRed CMS
    'coderedcms',
    'bootstrap4',
    ...
    
    'crx_hslayers'
]
  1. Install HSLayers app package from npm
cd ./static/hslayers
npm install
  1. Use crx_hslayers in any of your Wagtail models and migrate properly

  2. Collect static files from crx-hslayers to your Wagtail site

$ python3 manage.py collectstatic
  1. Restart Wagtail

  2. 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


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-2.1.3.tar.gz (11.5 MB view details)

Uploaded Source

Built Distribution

crx_hslayers-2.1.3-py3-none-any.whl (11.7 MB view details)

Uploaded Python 3

File details

Details for the file crx_hslayers-2.1.3.tar.gz.

File metadata

  • Download URL: crx_hslayers-2.1.3.tar.gz
  • Upload date:
  • Size: 11.5 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.2

File hashes

Hashes for crx_hslayers-2.1.3.tar.gz
Algorithm Hash digest
SHA256 7579b6d52f143121f6f348343935847c93582db8ffc109f36b5f8acde9685e54
MD5 a3bf44f41d36d3cd8148c59ac1876c9d
BLAKE2b-256 700fe473e8ac1b025517b74577757fa56c91eea296731336d8f7730effe65a19

See more details on using hashes here.

File details

Details for the file crx_hslayers-2.1.3-py3-none-any.whl.

File metadata

  • Download URL: crx_hslayers-2.1.3-py3-none-any.whl
  • Upload date:
  • Size: 11.7 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.2

File hashes

Hashes for crx_hslayers-2.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 b62b002da1357442f447d74f32db6ce43a7eda9d45a50c5f8e683308ae2bca52
MD5 4609dc6accfd1f9efa97a2abb3b1cfb3
BLAKE2b-256 f55bf7c1bf02742b27be4092be52c05449bd1024634e560c878b89767beed972

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page