Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-webmention-0.1.0.tar.gz (6.9 kB view hashes)

Uploaded Source

Built Distribution

django_webmention-0.1.0-py3-none-any.whl (11.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page