[![Python package](https://github.com/dnlbauer/django-signposting/actions/workflows/python-package.yml/badge.svg)](https://github.com/dnlbauer/django-signposting/actions/workflows/python-package.yml) # FAIR signposting middleware for Django `django_signposting` is a Django middleware library that facilitates the addition of FAIR signposting headers to HTTP responses. This middleware helps in making your data more FAIR (Findable, accessible, interoperable, reuseable) by embedding signposting headers in responses, guiding clients to relevant resources linked to the response content. Based on the [Signposting](https://github.com/stain/signposting) library. ## Features - Automatically adds signposting headers to HTTP responses. - Signposts can be added manually or automatically be parsed from JSON-LD/schema.org - Supports multiple relation types with optional media type specification. - Easily integrable with existing Django applications. ## Installation ```bash pip install django_signposting ``` ## Usage ### Automatic parsing of JSON-LD To enable automatic parsing of JSON-LD, add the following middleware classes to your Django project's MIDDLEWARE setting in settings.py: ```python MIDDLEWARE = [ ..., 'django_signposting.middleware.SignpostingMiddleware', 'django_signposting.middleware.JsonLdSignpostingParserMiddleware', ..., ] ``` This setup allows django_signposting to extract JSON-LD embedded in HTML `