webmention for Django projects.
$ pip install django-webmention
- Add
webmention
toINSTALLED_APPS
- Run
manage.py migrate webmention
- Add
url(r'^webmention', include('webmention.urls', namespace='webmention'))
to top-levelurls.py
- Run
manage.py test webmention
to ensure unit tests all pass
- Include webmention information by either:
- Adding
webmention.middleware.WebMentionMiddleware
toMIDDLEWARE_CLASSES
(affects all views) - Decorating a specific view with
webmention.middleware.include_webmention_information
- Adding
- View webmention responses in the Django admin tool and mark them as reviewed as needed