Skip to main content

Dalec plugin to retrieve discourse data

Project description

🗣 dalec-discourse

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

Django Aggregate a Lot of External Content -- Discourse

Aggregate last discourse post from a given discourse instance.

Plugin of 🤖 dalec.


Install the module:

pip install dalec-discourse

In django settings INSTALLED_APPS, add:



General usage:

{% load dalec %}

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

Real examples:


Retrieves latest topics:

{% dalec "discourse" "topic" %}

Retrieves latest topics from a category:

{% dalec "discourse" "topic" channel="category" channel_object="15" %}


Retrieves discourse categories:

{% dalec "discourse" "category" %}

User topics and replies

Retrieves user topics and replies:

{% dalec "discourse" "user_topic_and_reply" channel="user" channel_object="zorro" %}


Django settings must define:

  • DALEC_DISCOURSE_BASE_URL : discourse instance url (ex:
  • DALEC_DISCOURSE_API_USERNAME : discourse username (ex: admin)
  • DALEC_DISCOURSE_API_TOKEN : discourse api token (ex: azeazeaezdfqsmlkrjzr)

It could also define the login/password attribute, and then this auth method will be used (may be usefull for htaccess access for instance):


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

dalec-discourse-0.1.3.tar.gz (6.4 kB view hashes)

Uploaded Source

Built Distribution

dalec_discourse-0.1.3-py3-none-any.whl (6.5 kB view hashes)

Uploaded Python 3

Supported by

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