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

Setup

Running Tests

You can run tests using tox:

$ tox --parallel=auto

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-2.0.0.tar.gz (5.9 kB view details)

Uploaded Source

Built Distribution

django_webmention-2.0.0-py3-none-any.whl (7.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: django-webmention-2.0.0.tar.gz
  • Upload date:
  • Size: 5.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.0

File hashes

Hashes for django-webmention-2.0.0.tar.gz
Algorithm Hash digest
SHA256 16de0e57581745d90638fb36348d0be832adf0e3a7e9736a36fc340035386168
MD5 889684ed7268321334a04d5efcc2c0d4
BLAKE2b-256 1ba766324a8f4b0d31d06c2c0e5ebc57f62ddcd062ca5fc2adbc3c895b8e9b64

See more details on using hashes here.

File details

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

File metadata

  • Download URL: django_webmention-2.0.0-py3-none-any.whl
  • Upload date:
  • Size: 7.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.0

File hashes

Hashes for django_webmention-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a73fb7c8fee5e20fda6eee60354f23a1250aa11e59f48012708e7b1f030e0301
MD5 9358613b758f4852a384126d3610fffa
BLAKE2b-256 f9ee897c865c62872ce65457970e85c870c44e50f444c6c40359f9d54ffca77a

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