阅读背景:

Django FileField与upload_to在运行时确定。

来源:互联网 

I'm trying to set up my uploads so that if user joe uploads a file it goes to MEDIA_ROOT/joe as opposed to having everyone's files go to MEDIA_ROOT. The problem is I don't know how to define this in the model. Here is how it currently looks:I'm trying to set up my uploads so that if user




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

分享到: