code: def calc_log(request, calc_id, start, stop):
      
      start = start or 0
      stop = stop or 0
      try:
          response_data = logs.dbcmd('get_log_slice', calc_id, start, stop)
      except dbapi.NotFound:
          return HttpResponseNotFound()
      return HttpResponse(content=json.dumps(response_data), content_type=JSON)
docs: Get a slice of the calculation log as a JSON list of rows