Django Aggregate a Lot of External Content -- OpenProject
Aggregate last work packages from a given OpenProject instance.
Plugin of 🤖 dalec.
pip install dalec-openproject
In django settings INSTALLED_APPS
, add:
INSTALLED_APPS = [
...
"dalec",
"dalec_prime",
"dalec_openproject",
...
]
General usage:
{% load dalec %}
{% dalec "openproject" content_type [channel=None] [channel_object=None] [template=None] %}
Real examples:
Retrieves latest work packages of a project defined by its identifier (i.e. slug):
{% dalec "openproject" "work_package" channel="project" channel_object="project-identifier"%}
Django settings must define:
DALEC_OPENPROJECT_BASE_URL
: OpenProject instance url (ex:https://openproject.org/
)DALEC_OPENPROJECT_API_KEY
: OpenProject api key (ex:admazerazerazerazerazer
)