Skip to content

DALEC -- Aggregate a lot of openproject content for django

License

Notifications You must be signed in to change notification settings

webu/dalec-openproject

Repository files navigation

🔗 dalec-openproject

Stable Version Code style: black Imports: isort semver Documentation Status

Django Aggregate a Lot of External Content -- OpenProject

Aggregate last work packages from a given OpenProject instance.

Plugin of 🤖 dalec.

Installation

pip install dalec-openproject

In django settings INSTALLED_APPS, add:

INSTALLED_APPS = [
    ...
    "dalec",
    "dalec_prime",
    "dalec_openproject",
    ...
    ]

Usage

General usage:

{% load dalec %}

{% dalec "openproject" content_type [channel=None] [channel_object=None] [template=None] %}

Real examples:

Work packages

Retrieves latest work packages of a project defined by its identifier (i.e. slug):

{% dalec "openproject" "work_package" channel="project" channel_object="project-identifier"%}

Settings

Django settings must define:

  • DALEC_OPENPROJECT_BASE_URL : OpenProject instance url (ex: https://openproject.org/)
  • DALEC_OPENPROJECT_API_KEY : OpenProject api key (ex: admazerazerazerazerazer)