Closed zzm88 closed 7 years ago
t.picture.file is ThumbnailerImageField . But t.picture.file.name is sth like "C:/foo/bar.jpg" and the django tag returns a wrong address containing local address " C:/....."
how to return directly "bar.jpg"?
os.path.basename(t.picture.file.name)
t.picture.file is ThumbnailerImageField . But t.picture.file.name is sth like "C:/foo/bar.jpg" and the django tag returns a wrong address containing local address " C:/....."
how to return directly "bar.jpg"?