swh.web.browse.views.content module

swh.web.browse.views.content.content_raw(request: django.http.request.HttpRequest, query_string: str) django.http.response.HttpResponse[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: django.http.request.HttpRequest, query_string: Optional[str] = None) django.http.response.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/