Metadata-Version: 2.0
Name: django-webmention
Version: 0.1.0
Summary: A pluggable implementation of webmention for Django projects.
Home-page: https://github.com/easy-as-python/django-webmention
Author: Dane Hillard
Author-email: github@danehillard.com
License: MIT
Description-Content-Type: UNKNOWN
Keywords: webmention pingback linkback blogging
Platform: UNKNOWN
Classifier: Development Status :: 2 - Pre-Alpha
Classifier: Intended Audience :: Developers
Classifier: Framework :: Django
Classifier: Framework :: Django :: 1.8
Classifier: Framework :: Django :: 1.9
Classifier: Framework :: Django :: 1.10
Classifier: Framework :: Django :: 1.11
Classifier: Framework :: Django :: 2.0
Classifier: Topic :: Internet :: WWW/HTTP :: Indexing/Search
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Requires-Dist: Django (>=1.8.2)
Requires-Dist: requests (>=2.7.0)
Requires-Dist: pytz (==2015.4)

django-webmention |PyPI version| |Build Status|
===============================================

`webmention <https://www.w3.org/TR/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

.. |PyPI version| image:: https://badge.fury.io/py/django-webmention.svg
   :target: https://badge.fury.io/py/django-webmention
.. |Build Status| image:: https://travis-ci.org/easy-as-python/django-webmention.svg?branch=master
   :target: https://travis-ci.org/easy-as-python/django-webmention


