阅读背景:

在django中使用逻辑提供静态文件(保留downloadcount)

来源:互联网 

I have a site which enables the user to download certain files. However I want to keep a download count for each file so going the usual way by putting the static files on a different subdomain and then letting apache do the heavy lifting is not a way as well as HttpResponseRedirecting the user to a subdomain isn't good because then the user 'sees' the proper download url and can therefore download the file without incrementing the download count. I could just build a view which then serve()s the file however i am worried about that I have a site which enables the user to downloa




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: