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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file django-webmention-0.1.0.tar.gz.

File metadata

File hashes

Hashes for django-webmention-0.1.0.tar.gz
Algorithm Hash digest
SHA256 cc2c6fd8fefd4e73bc0f4945ee010be5d330f0030a38df3e7f4034174e9fbcbd
MD5 8105f92d15e02a9191018db98f544697
BLAKE2b-256 2959c2af0013f6de05b696ceaebcf33859b82948f1dd3358f375e9e1b59a3ff9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for django_webmention-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 873d0bb450b9cda3afbc1e53f93cf0b7420ca5c18da8826e3fc373216f3c05ec
MD5 6513f305360bbce63d94370539579541
BLAKE2b-256 37623712276a8898633edff933fadb45a672e34f4c7464b7b549be59e34f34e3

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