A pluggable implementation of webmention for Django projects.
Project description
webmention for Django projects.
Installation
$ pip install django-webmention
Add webmention to INSTALLED_APPS
Run manage.py migrate webmention
Add url(r'^webmention', include('webmention.urls', namespace='webmention')) to top-level urls.py
Use path('webmention/', include(webmention.urls)) for newer projects
Run manage.py test webmention to ensure unit tests all pass
Usage
Include webmention information by either:
Installing the middleware in settings.py (affects all views)
Use webmention.middleware.webmention_middleware in MIDDLEWARE for new projects and projects with 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 tool and mark them as reviewed as needed
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
File details
Details for the file django-webmention-0.1.0.tar.gz
.
File metadata
- Download URL: django-webmention-0.1.0.tar.gz
- Upload date:
- Size: 6.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cc2c6fd8fefd4e73bc0f4945ee010be5d330f0030a38df3e7f4034174e9fbcbd |
|
MD5 | 8105f92d15e02a9191018db98f544697 |
|
BLAKE2b-256 | 2959c2af0013f6de05b696ceaebcf33859b82948f1dd3358f375e9e1b59a3ff9 |
File details
Details for the file django_webmention-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: django_webmention-0.1.0-py3-none-any.whl
- Upload date:
- Size: 11.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 873d0bb450b9cda3afbc1e53f93cf0b7420ca5c18da8826e3fc373216f3c05ec |
|
MD5 | 6513f305360bbce63d94370539579541 |
|
BLAKE2b-256 | 37623712276a8898633edff933fadb45a672e34f4c7464b7b549be59e34f34e3 |