Logos in media folder #383
-
Hello all, I want to serve media files over a S3 bucket, but don't want the media to be entirely public. But I do need the logos public! They are stored in the media folder. Does anybody know how to achieve this? Love the work! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 8 replies
-
@hcwinsemius this could be achieved by supporting a new optional setting |
Beta Was this translation helpful? Give feedback.
-
Hi, I stumble through this issue and got around it kinda simple. But It was hard for me to figure out the pieces so I'll leave this here and look to open a PR to enhance documentarion. First of all in my
The important part of this is configuring the
With these env variables set I later added an S3 config in the settings:
By doing this configurations I was able to change the default behavior of the Logo file storage and handle the S3 implementation. This is more of an S3/Django default configurations. But I think it's worth to have it documented somewhere. |
Beta Was this translation helpful? Give feedback.
Hi, I stumble through this issue and got around it kinda simple. But It was hard for me to figure out the pieces so I'll leave this here and look to open a PR to enhance documentarion.
First of all in my
settings.py
I have something like this: