def layout(request, ident, stateless=False, cache_id=None, **kwargs):
    'Return the layout of the dash application'
    _, app = DashApp.locate_item(ident, stateless)

    view_func = app.locate_endpoint_function('dash-layout')
    resp = view_func()

    initial_arguments = get_initial_arguments(request, cache_id)

    response_data, mimetype = app.augment_initial_layout(resp, initial_arguments)
    return HttpResponse(response_data,
                        content_type=mimetype)
def layout ( request , ident , stateless = False , cache_id = None , ** kwargs ) : _ , app = DashApp . locate_item ( ident , stateless ) view_func = app . locate_endpoint_function ( 'dash-layout' ) resp = view_func ( ) initial_arguments = get_initial_arguments ( request , cache_id ) response_data , mimetype = app . augment_initial_layout ( resp , initial_arguments ) return HttpResponse ( response_data , content_type = mimetype )
Return the layout of the dash application