The Web Application
opus_app is the Django project that serves the OPUS user interface and the public
web API out of the database an import wrote. It runs under a WSGI server behind nginx or
Apache, and it is configured by the same TOML file as everything else in OPUS. It holds
no observation metadata of its own: every metadata value it returns was computed by
The Import Pipeline and stored in The OPUS Database. What it does write is
what a session produces – the search it ran, the results it cached, the cart it filled
– which How a Request Is Served describes.
Its Django apps are search, results, metadata, cart, ui, help and
paraminfo, over a tools app holding what they share, and they are documented
together here.
Start with How a Request Is Served, which follows one request from the URL to the answer; Running the Web Application is how to start the thing at all. The remaining pages are the shared machinery, then each app in the order a user meets it, and finally what to do to add to any of them.