django-photologue icon indicating copy to clipboard operation
django-photologue copied to clipboard

Specify the storage/access controls?

Open puterleat opened this issue 9 years ago • 3 comments

Is it possible to specify a particular Storage instance to use with photologue, for example if you wanted to apply access controls to a gallery and the hosted images?

puterleat avatar Jun 17 '15 19:06 puterleat

I'm not sure that I understand the question - by "storage instance", do you mean S3?

richardbarran avatar Jun 22 '15 07:06 richardbarran

Sorry - wasn't clear. Although I would be using S3 in this case, I actually meant the more general idea that you could specify a particular storage for photologue, rather than using the default media storage. See: https://docs.djangoproject.com/en/1.8/topics/files/#storage-objects

This way you can create a separate S3 storage which isn't publicly readable and one could implement gallery permissions in the views.

puterleat avatar Jun 22 '15 08:06 puterleat

Ok, I understand now! I've never seen or used that feature of Django. At present Photologue does not support this feature. There's no reason why it could not... but it would need someone to code it and send in a pull request! :-)

richardbarran avatar Jun 30 '15 07:06 richardbarran