@decorator.debug_only
def api_loaddata(request):
  format = request.POST.get('format', 'json')
  fixture = request.POST.get('fixture', '[]')
  fixture_ref = StringIO.StringIO(fixture)

  def _loaddata():
    try:
      count = 0
      models = set()
      objects = serializers.deserialize(format, fixture_ref)
      for obj in objects:
        count += 1
        models.add(obj.object.__class__)
        real_obj = obj.object

        real_obj.put()
      return count
    except Exception, e:
     raise

  #count = db.run_in_transaction(_loaddata)
  count = _loaddata()

  return http.HttpResponse("Loaded %s items from fixture" % count)
this is a debug and testing api used to fill a test site with
dataset/ETHPy150Open CollabQ/CollabQ/api/views.py/api_loaddata