views

Functions

intranet.apps.signage.views.check_internal_ip(request) HttpResponse | None[source]

A method to determine if a request is allowed to load a signage page.

Denies access by returning None unless the user is authenticated and not restricted, or the request IP address is in settings.INTERNAL_IPS.

Returns:

a 403 if the request is unauthorized or None if the request is authorized

intranet.apps.signage.views.eighth(request)[source]

Displays the eighth period signage page. This cannot be a regular signage page because it needs to reload in order to switch blocks or update information..

intranet.apps.signage.views.prometheus_metrics(request)[source]

Prometheus metrics for signage displays. Currently just whether or not they are online.

intranet.apps.signage.views.signage_display(request, display_id: str) HttpResponse[source]