django_aws_api_gateway_websockets.mixins module

class django_aws_api_gateway_websockets.mixins.AddWebSocketRouteToContextMixin[source]

Bases: object

Adds the APIGateway Route to the Content

channel_name = ''
get_context_data(**kwargs) dict[source]

Adds the Websocket route connection to the context

websocket_route_key = 'default'
class django_aws_api_gateway_websockets.mixins.AppChannelWebSocketMixin[source]

Bases: AddWebSocketRouteToContextMixin

Adds the websocket setup where the route key and channel name are the name of the app containing the view that extends this class

app_channel_override = None
get_context_data(**kwargs) dict[source]

Adds the Websocket route connection to the context

request = None