def delete_video():
    src = request.form.get('src')
    try:
      Video.delete(src)
      return json.dumps('ok')
    except:
      raise Exception('Could not delete video')
Example #2
0
def delete_video(request):
    src = request.POST.get('src', '')
    try:
      Video.delete(src)
      return HttpResponse('ok', content_type="application/json")
    except:
      raise Exception('Could not delete video')
def delete_video(request):
    src = request.POST.get('src')
    try:
        Video.delete(src)
        return Response(json.dumps('ok'))
    except:
        raise Exception('Could not delete video')