Skip to main content

django-webmention PyPI version Build Status

webmention for Django projects.

What this project is

This package provides a way to integrate webmention endpoint discovery and webmention receipts into your project. Once you follow the installation instructions, you should be able to use something like webmention.rocks to generate a test webmention and see it in the Django admin panel.

Once you receive a webmention, you can click through to the page the webmention was sent from and see what people are saying about your site. Afterward, you can mark the webmention as reviewed in the Django admin so you can more easily see the latest webmentions you receive.

Once you verify that you're receiving webmentions successfully, you can use the webmention information as you like. As an example, you could query the webmentions that are responses to a specific page and display them on that page.

What this project isn't

This package does not currently provide functionality for sending webmentions.

Installation

$ pip install django-webmention

  • Add 'webmention' to INSTALLED_APPS
  • Run python manage.py migrate webmention
  • Add the URL patterns to your top-level urls.py
    • path('webmention/', include('webmention.urls')) for Django >= 3.2

Usage

  • Include webmention information by either:
    • Installing the middleware in settings.py (affects all views)
      • Append webmention.middleware.webmention_middleware to your MIDDLEWARE settings
    • Decorating a specific view with webmention.middleware.include_webmention_information
  • View webmention responses in the Django admin interface and mark them as reviewed as needed

Development

Setup

Running Tests

You can run tests using tox:

$ tox --parallel=auto

Release files for django-webmention 4.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-webmention 4.0.0
File Size Uploaded
django_webmention-4.0.0.tar.gz 8.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for django-webmention 4.0.0
File Interpreter ABI Platform
django_webmention-4.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 15.8 kB

Release files / django_webmention-4.0.0.tar.gz

Download URL django_webmention-4.0.0.tar.gz
Size 8.0 kB
Tags Source
SHA-256 checksum
How to use checksums
001871e835e2d37590b7d2a91cd9acc7ebd4ee3ab07d56b34815336eaeda2336
BLAKE2b-256 checksum
How to use checksums
69c1f4cc5a511c77fc292985689bf2dd73e155a18247353bdee4917a78e46f9c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Feb 19, 2026.

Transparency log

Release files / django_webmention-4.0.0-py3-none-any.whl

Download URL django_webmention-4.0.0-py3-none-any.whl
Size 7.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1a319de5b52c9c520a157040fbd618c4cd2a63f8ea871c9b6d901bb3d1cbf3ac
BLAKE2b-256 checksum
How to use checksums
e02872c0fe1dc5e8fd773d49a09ba4579af333470d21e169cfff148d72697331
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Feb 19, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

4.0.0 This release

2 release files

3.0.0

2 release files

2.0.2

2 release files

2.0.1

2 release files

2.0.0

2 release files

1.1.0

2 release files

1.0.1

1 release file

1.0.0

1 release file

0.1.0

2 release files

0.0.4

1 release file

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page