Untitled

mail@pastecode.io avatarunknown
plain_text
2 months ago
132 B
0
Indexable
Never
 fs = FileSystemStorage()
    s = datetime.now().strftime("%Y%m%d-%H%M%S")+".jpg"
    fn = fs.save(s, photo)
    path = fs.url(s)