A pluggable implementation for receiving webmentions for Django projects
Project description
django-webmention

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'toINSTALLED_APPS - Run
python manage.py migrate webmention - Add the URL patterns to your top-level
urls.pypath('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_middlewareto yourMIDDLEWAREsettings
- Append
- Decorating a specific view with
webmention.middleware.include_webmention_information
- Installing the middleware in
- View webmention responses in the Django admin interface and mark them as reviewed as needed
Development
Setup
- Install tox
Running Tests
You can run tests using tox:
$ tox --parallel=auto
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file django_webmention-4.0.0.tar.gz.
File metadata
- Download URL: django_webmention-4.0.0.tar.gz
- Upload date:
- Size: 8.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
001871e835e2d37590b7d2a91cd9acc7ebd4ee3ab07d56b34815336eaeda2336
|
|
| MD5 |
0513666f6b799b133982999c91d87100
|
|
| BLAKE2b-256 |
69c1f4cc5a511c77fc292985689bf2dd73e155a18247353bdee4917a78e46f9c
|
Provenance
The following attestation bundles were made for django_webmention-4.0.0.tar.gz:
Publisher:
packaging.yml on easy-as-python/django-webmention
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
django_webmention-4.0.0.tar.gz -
Subject digest:
001871e835e2d37590b7d2a91cd9acc7ebd4ee3ab07d56b34815336eaeda2336 - Sigstore transparency entry: 969618641
- Sigstore integration time:
-
Permalink:
easy-as-python/django-webmention@41c2fcc5630ef2660f0b7ed76cb8978b2186e0d3 -
Branch / Tag:
refs/tags/v4.0.0 - Owner: https://github.com/easy-as-python
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
packaging.yml@41c2fcc5630ef2660f0b7ed76cb8978b2186e0d3 -
Trigger Event:
release
-
Statement type:
File details
Details for the file django_webmention-4.0.0-py3-none-any.whl.
File metadata
- Download URL: django_webmention-4.0.0-py3-none-any.whl
- Upload date:
- Size: 7.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1a319de5b52c9c520a157040fbd618c4cd2a63f8ea871c9b6d901bb3d1cbf3ac
|
|
| MD5 |
fb0425ec89f4851c83b04836f1b164fb
|
|
| BLAKE2b-256 |
e02872c0fe1dc5e8fd773d49a09ba4579af333470d21e169cfff148d72697331
|
Provenance
The following attestation bundles were made for django_webmention-4.0.0-py3-none-any.whl:
Publisher:
packaging.yml on easy-as-python/django-webmention
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
django_webmention-4.0.0-py3-none-any.whl -
Subject digest:
1a319de5b52c9c520a157040fbd618c4cd2a63f8ea871c9b6d901bb3d1cbf3ac - Sigstore transparency entry: 969618651
- Sigstore integration time:
-
Permalink:
easy-as-python/django-webmention@41c2fcc5630ef2660f0b7ed76cb8978b2186e0d3 -
Branch / Tag:
refs/tags/v4.0.0 - Owner: https://github.com/easy-as-python
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
packaging.yml@41c2fcc5630ef2660f0b7ed76cb8978b2186e0d3 -
Trigger Event:
release
-
Statement type: