Django 1.5.4 专题11 file uploading and updating database schema
一.修改settings.py的内容如下二.修改article/models.py的内容如下fromdjango.dbimportmodels
fromtimeimporttime
defget_upload_file_name(instance,filename):
return"upload_files/%s_%s"%(str(time()).replace('.','_'),filenam