Installation¶
Requirements¶
Python 3.10+
Django (installed automatically as a dependency)
A running IIIF Image API server to serve the actual image pixels (djiiif builds URLs and documents that point at it; see djiiif).
Install¶
$ pip install djiiif
Optional extras¶
Extra |
Install |
Adds |
|---|---|---|
Django REST Framework |
|
The serializer field |
Documentation toolchain |
|
Sphinx + theme for building these docs |
Full dev toolchain |
|
Tests, build, docs (for contributors) |
The core package never imports DRF, so installing without the drf extra keeps
your dependency tree minimal.
Add djiiif to your project¶
Add it to INSTALLED_APPS — this enables the system check
that validates your configuration, and is required to use the
template tags:
INSTALLED_APPS = [
# ...
"djiiif",
]
To use the optional drop-in views, include the URLconf:
from django.urls import include, path
urlpatterns = [
path("iiif/", include("djiiif.urls")),
]
Continue with the Quickstart.