Skip to content Skip to sidebar Skip to footer

Django: Sorl-thumbnail And Hosting Image Files On My Own File Server

I like very much sorl-thumbnail library and I want to store image files not in current application (django) server, but to (another) my own file server with webserver for serving s

Solution 1:

Hmm, perhaps I am not answering the question you meant to ask (don't know anything about sorl-thumbnail), but my first instinct is to cut django out of the picture. If you have some separate server which can serve the files up statically, then just deploy that server. Sure your django application will generate links to those images, but as long as you are clear about your URLs, that should be no problem. You can take this approach even with one web server, configure it to pass only some URLs to django, but handle the image URLs directly.

None of this addresses the uploads issue though...


Solution 2:

I think the answer to this Django: how to serve user-submitted images & thumbnails from separate, multiple servers? question fits your idea.

Because otherwise you can't just upload the file simply to remote machine. Or you will develope your script to upload files to another host by using scp or something like this...

Cheers, Ignas


Post a Comment for "Django: Sorl-thumbnail And Hosting Image Files On My Own File Server"