swh.web.browse.views.content module#

swh.web.browse.views.content.content_raw(request: HttpRequest, query_string: str) FileResponse[source]#

Django view that produces a raw display of a content identified by its hash value.

The url that points to it is GET /browse/content/[(algo_hash):](hash)/raw/

swh.web.browse.views.content.content_display(request: HttpRequest, query_string: str | None = None) HttpResponse[source]#

Django view that produces an HTML display of a content identified by its hash value.

The URLs that points to it are GET /browse/content/[(algo_hash):](hash)/ GET /browse/content/