You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The settings.THUMBNAIL_PREFIX is the reason files are being uploaded to a cache/ directory.
First Question
The image that the user uploads does go to my upload_to= directory, but the ... I guess, cached images go to a folder in my media root named cache. Is this best-practice? Or should the uploaded image and its cached siblings be together?
Second Question
I want my media root directory to have folders for every user. This means, I'd like to have everything related to that user under one directory. How would I set the current TEMPLATE_PREFIX (cache/) to upload inside of a user's username folder in the media root?
I am overriding the
ThumbnailBackend
to be more SEO-friendly (code found on MicroPyramid):The
settings.THUMBNAIL_PREFIX
is the reason files are being uploaded to acache/
directory.First Question
The image that the user uploads does go to my
upload_to=
directory, but the ... I guess, cached images go to a folder in my media root named cache. Is this best-practice? Or should the uploaded image and its cached siblings be together?Second Question
I want my media root directory to have folders for every user. This means, I'd like to have everything related to that user under one directory. How would I set the current TEMPLATE_PREFIX (
cache/
) to upload inside of a user's username folder in the media root?Ex user with username "jason1" uploads an image. It gets uploaded to either:
or
The text was updated successfully, but these errors were encountered: