Webmention support for Django.
Project description
django-wm
django-wm
lets you add Webmention functionality to your Django project with minimal setup.
Getting started
All done? You can use the testing tool to make sure it works.
Features
-
Endpoints:
/webmention
: Receives incoming Webmentions from other sites./webmention/get
: Used to retrieve Webmentions for a page on your site.
e.g./webmention/get?url=/my-article
will return any received Webmentions that target/my-article
on your site.// /webmention/get?url=/my-article { "target_url": "https://my-site.org/my-article", "mentions": [ { "hcard": { "name": "Jane Bloggs", "avatar": "https://gravatar.com/janebloggs", "homepage": "https://jane-bloggs-example.org" }, "quote": null, "source_url": "https://jane-bloggs-example.org/some-article", "published": "2020-01-17T21:45:24.542Z", "type": "webmention" } ] }
/webmention/dashboard/
: a simple overview of recent mentions (accessible with permissionmentions.view_webmention_dashboard
or publicly viasettings.WEBMENTIONS_DASHBOARD_PUBLIC
)
-
WebmentionHeadMiddleware
adds your/webmention
endpoint to the headers of your pages so that it can be discovered by other sites. -
{% webmentions_endpoint %}
template tag to include your/webmention
endpoint to your Django templates HTML element. -
MentionableMixin
enables automatic submission of Webmentions to other sites when you mention them in your content.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
django-wm-3.0.0.dev2.tar.gz
(68.7 kB
view hashes)
Built Distribution
Close
Hashes for django_wm-3.0.0.dev2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4deae759345b177728cca839e1b6f46bdb3928f770efc9c04f3cf488352fadd6 |
|
MD5 | 289e2beb3a529a013813b71210c05db0 |
|
BLAKE2b-256 | 8e4fd26a06c419d28c58ba6e8075414265c14c3d2077e8d4d161fe6fad38440d |