Webmention support for Django.
Project description
django-wm
django-wm
lets you add Webmention functionality to your Django project with minimal setup.
Upgrading
Version 2.0.0
has potentially BREAKING CHANGES for any users upgrading from 1.x.x
!
If you used any 1.x.x
version of django-wm
please follow these instructions to upgrade to 2.0.0
without data loss. Please complete the upgrade to 2.0.0
before upgrading further to any later versions.
Getting started
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" } ] }
-
WebmentionHeadMiddleware
adds your/webmention
endpoint to the headers of your pages so that it can be discovered by other sites. -
{% webmention_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
Built Distribution
Hashes for django_wm-2.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | faeb30c92486dc8f27ca33f9fba3f0905d0231c11a9b6fa686b05447c4418fee |
|
MD5 | ae73cefbeeecc56cd304d0a490e02ed8 |
|
BLAKE2b-256 | f2acd944a2b00d7a13970caa1d9e571e63bc78e7c2717a85c8460c8f491785f8 |