Need to store image in SFTP server storage

25 views
Skip to first unread message

Mrs RAMADEVI SHANKAR

unread,
Oct 20, 2015, 11:35:35 AM10/20/15
to Django Photologue
How can i store Photologue image in SFTP storage location. Can you please let me know.

Richard Barran

unread,
Oct 20, 2015, 11:54:34 AM10/20/15
to Django Photologue
Hello,

The Photologue images can be stored in a custom file storage system; at present the only one defined is Amazon S3, see https://django-photologue.readthedocs.org/en/3.2/pages/installation.html#amazon-s3

This uses django-storages https://django-storages.readthedocs.org/en/latest/
Django-storages is a collection of custom storage backends for Django, and it also has support for SFTP. So, in theory, by looking at the example Photologue code for using Amazon S3 https://github.com/jdriscoll/django-photologue/tree/master/example_project/example_project/example_storages and at the django-storages documentation.

I am not aware of anyone who has already tried to use SFTP with django-photologue, but it should be possible with careful study of the above documentation and code examples.

Good luck!
Reply all
Reply to author
Forward
0 new messages