简体   繁体   English

自定义Django存储

[英]Custom Django Storage

I have a web page where people can upload their own images and I want to store them in a salable storage. 我有一个网页,人们可以在其中上传自己的图像,我想将它们存储在可售的存储设备中。 I was willing to use Amazon S3, but later I decided to use my own file servers with web servers for serving static content (images) 我愿意使用Amazon S3,但后来我决定将自己的文件服务器与Web服务器一起使用,以提供静态内容(图像)

But I'm not sure how to do this. 但是我不确定该怎么做。 What is the correct way to do it and what custom Django storage should I use? 什么是正确的方法,应该使用哪种自定义Django存储? How will I upload images to these file servers? 如何将图像上传到这些文件服务器?

这是一个开始: 编写自定义存储系统

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM