Skip to main content

A pluggable implementation of webmention for Django projects.

Project description

django-webmention PyPI version Build Status

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:

$ python runtests.py

You can also run the tests inside a consuming Django project:

$ python manage.py test webmention

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

django_webmention-1.0.1-py3-none-any.whl (10.3 kB view details)

Uploaded Python 3

File details

Details for the file django_webmention-1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for django_webmention-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 913b223f3e616c4034fc0ff0b70b07e1535059ea29b94e420e03e8340ef9bd4d
MD5 1a4d7504690a9cc17cbee7e402907a89
BLAKE2b-256 a823c335e65dec44821e19a08f0bd7103d488d06ecd36d76cc58393af35db3e0

See more details on using hashes here.

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