wagtailrelated
A module for Wagtail that finds related pages and tags for your pages.
How to install
Install using pip:
pip install wagtail-related
Settings
In your settings file, add wagtailrelated to INSTALLED_APPS:
INSTALLED_APPS = [
# ...
'wagtailrelated',
# ...
]
URL configuration
Include API url into your urlpatterns:
urlpatterns = [
# ...
url(r'^api/more-like-this', include('wagtailrelated.api.urls')),
# ...
Backend settings
Add the following setting into your project:
WAGTAIL_RELATED_BACKENDS = {
'default': {
'BACKEND': 'wagtailrelated.backends.elasticsearch5',
}
}
Note that the module uses Elasticsearch to find related pages and relies on Wagtail's
built-in search backend. This means that you should have the
WAGTAILSEARCH_BACKENDS setting
comfigured with wagtail.search.backends.elasticsearch5 in your project.
Settings shown in this instruction will work fine,
if your Elasticsearch 5 backend exists under the default key.
If your project has multiple Wagtail search backends and your Elasticsearch 5 search backend
has different key, see how you need to modify WAGTAIL_RELATED_BACKENDS
here.
How to use
The package provides an API to get related pages. See the API documentation.
Metadata
Release files for wagtail-related 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| wagtail_related-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for wagtail_related-0.1.0-py3-none-any.whl |
Security for wagtail-related 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.