ユーザーごとにdjangoでのファイルダウンロードの速度を制限する方法はありますか?私は次のような例を見てきました:
filename = __file__ # Select your file here.
wrapper = FileWrapper(file(filename))
response = HttpResponse(wrapper, content_type='text/plain')
response['Content-Length'] = os.path.getsize(filename)
return response
これを制限する方法はありますか(プレミアムユーザーはフルスピードで、ベーシックユーザーはダウンロードが遅くなります)?