fs = FileSystemStorage() s = datetime.now().strftime("%Y%m%d-%H%M%S")+".jpg" fn = fs.save(s, photo) path = fs.url(s)