Skip to main content

Webmention support for Django.

Project description


Tests pypi package

django-wm lets you add Webmention functionality to your Django project with minimal setup.


Please check the upgrade guide for any breaking changes before upgrading. See the changelog for full details.

Getting started

Setup instructions.

Code for an example project.

All done? You can use the testing tool to make sure it works.


  • 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": "",
        "mentions": [
            "hcard": {
              "name": "Jane Bloggs",
              "avatar": "",
              "homepage": ""
            "quote": null,
            "source_url": "",
            "published": "2020-01-17T21:45:24.542Z",
            "type": "webmention"
  • 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

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-4.0.2.tar.gz (56.7 kB view hashes)

Uploaded source

Built Distribution

django_wm-4.0.2-py3-none-any.whl (83.2 kB view hashes)

Uploaded py3

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