A pluggable implementation of webmention for Django projects
Project description
django-webmention
webmention for Django projects.
Installation
$ pip install django-webmention
- Add
'webmention'
toINSTALLED_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.0url(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
inMIDDLEWARE
for Django >= 1.10 - Use
webmention.middleware.WebMentionMiddleware
inMIDDLEWARE_CLASSES
for older projects
- Use
- 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
Close
Hashes for django_webmention-2.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a73fb7c8fee5e20fda6eee60354f23a1250aa11e59f48012708e7b1f030e0301 |
|
MD5 | 9358613b758f4852a384126d3610fffa |
|
BLAKE2b-256 | f9ee897c865c62872ce65457970e85c870c44e50f444c6c40359f9d54ffca77a |