A pluggable implementation of webmention for Django projects.
Project description
# django-webmention [![PyPI version](https://badge.fury.io/py/django-webmention.svg)](https://badge.fury.io/py/django-webmention) [![Build Status](https://travis-ci.org/easy-as-python/django-webmention.svg?branch=master)](https://travis-ci.org/easy-as-python/django-webmention)
[webmention](https://www.w3.org/TR/webmention/) for Django projects.
## 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 >= 2.0
url(r’^webmention’, include(‘webmention.urls’, namespace=’webmention’)) for Django < 2.0
## Usage
- Include webmention information by either:
- Installing the middleware in settings.py (affects all views)
Use webmention.middleware.webmention_middleware in MIDDLEWARE for Django >= 1.10
Use webmention.middleware.WebMentionMiddleware in MIDDLEWARE_CLASSES for older projects
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
### Running Tests
You can run tests using the runtests.py module:
`shell $ python runtests.py `
You can also run the tests inside a consuming Django project:
` $ python manage.py test webmention `
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 Distributions
Built Distribution
File details
Details for the file django_webmention-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: django_webmention-1.0.0-py3-none-any.whl
- Upload date:
- Size: 10.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f57d2d88e20ddcd78b430b31cf5e82e87d56f30fcaed19cbc1b21f0db191cf3c |
|
MD5 | 79ee0c58758b18724e46679833baeea8 |
|
BLAKE2b-256 | b7aad0f7c0798c6bf28073ffad9324e16168d1f802a1be43257d4da86f7aa72a |