(request: WSGIRequest)
return render(request, "lights.html", context)
Renders the /lights page. During voting, only privileged users can access this.
Renders the /lights page. During voting, only privileged users can access this.
Renders the / lights page . During voting only privileged users can access this .
def index(request: WSGIRequest) -> HttpResponse:
    """Renders the /lights page. During voting, only privileged users can access this."""
    from core import urls

    context = base.context(request)
    context["urls"] = urls.lights_paths
    # programs that have a strip_color or ring_color function are color programs
    # programs that have a draw function are screen programs
    context["color_program_names"] = ["Disabled", "Fixed", "Rainbow", "Rave"]
    context["screen_program_names"] = ["Disabled", "Circular"]
    return render(request, "lights.html", context)
def index ( request : WSGIRequest ) -> HttpResponse : from core import urls context = base . context ( request ) context [ "urls" ] = urls . lights_paths # programs that have a strip_color or ring_color function are color programs # programs that have a draw function are screen programs context [ "color_program_names" ] = [ "Disabled" , "Fixed" , "Rainbow" , "Rave" ] context [ "screen_program_names" ] = [ "Disabled" , "Circular" ] return render ( request , "lights.html" , context )