ListView

This module contains views to implement the React.

Proxy list view in the Smarter Dashboard.

class smarter.apps.proxy.views.listview.view.ProxyListView(**kwargs)[source]

Bases: SmarterAuthenticatedNeverCachedWebView

Render the proxy list view for the Smarter Workbench web console.

This view renders the React app, @smarter/proxy-list, which lists the Proxies that the user may use, in a table or as cards.

Parameters:
  • request (ASGIRequest) – Django HTTP request object.

  • args (tuple) – Additional positional arguments.

  • kwargs (dict) – Additional keyword arguments.

Returns:

The rendered page.

Return type:

HttpResponse

property formatted_class_name: str

Returns a formatted string of the class name for logging purposes.

get(request, *args, **kwargs)[source]

Handle GET requests and return a cleaned HttpResponse.

Parameters:

request (ASGIRequest) – The HTTP request object.

Returns:

An HttpResponse with the cleaned HTML content.

Return type:

HttpResponse

proxies: list[Proxy]
template_path: str = 'react/proxy-list.html'