Webmention support for Django.
Reason this release was yanked:
Broken endpoint - please install 2.0.1 instead.
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 Distributions
Hashes for django_wm-2.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3ffa89e65724e3778519658992084b4a2b5d03ec2479c55a9d48be10dd57bf4f |
|
MD5 | 88269f57c84658cb89c690f6079cd521 |
|
BLAKE2b-256 | 863ff70e9df09796500a7d459e390a7b952722bb3b2aa19182e614b3acd4fdd8 |
Hashes for django_wm-2.0.0-2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 118d8fbbdee4654ca9ef10d99811b5bbed5bd30d8d128a0313d05ebdc5ed0e9f |
|
MD5 | faf077aaa513b9a87e16b6b4cd9d3e4b |
|
BLAKE2b-256 | 932d01cf9c6f708b613646f86a35cd0b28d2ddc360a1ffa473b5543d301a8fcd |
Hashes for django_wm-2.0.0-1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a00719350adb81882d4bc4ed5c1a81f517c533fed3db762b5c01feb09e82c7c4 |
|
MD5 | 32adc43cbca456331b73060188d3f288 |
|
BLAKE2b-256 | 5d011e31d9a0a382c51dc11d36e89b7b6075549610485cc6db32cc73e182bf3a |