Untitled

mail@pastecode.io avatar
unknown
plain_text
a year 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)