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
I have "bundle" and "user_files" subdirectories in my flask "static_folder" diectory.
The "bundle" subdirectory contains the static content of the site (js, css, images), compiled using webpack.
The "user_files" subdirectory contains files uploaded by users, such as avatars and illustrations for blog posts.
I'd like the flask-static-digest extension to only apply to the "static_folder/bundle" subdirectory, not "static_folder/user_files".
At the moment, I don't see a way to set up flask_static_digest like this.
The text was updated successfully, but these errors were encountered:
I hear you, what do you think about having a FLASK_STATIC_DIGEST_IGNORE_PATHS: [] which defaults to an empty list but if you want to ignore user uploads or anything else you can do FLASK_STATIC_DIGEST_IGNORE_PATHS: ["user_files", "some/other/ignored/path"]? The path would be relative to your static_folder.
I hear you, what do you think about having a FLASK_STATIC_DIGEST_IGNORE_PATHS: [] which defaults to an empty list but if you want to ignore user uploads or anything else you can do FLASK_STATIC_DIGEST_IGNORE_PATHS: ["user_files", "some/other/ignored/path"]? The path would be relative to your static_folder.
I have "bundle" and "user_files" subdirectories in my flask "static_folder" diectory.
The "bundle" subdirectory contains the static content of the site (js, css, images), compiled using webpack.
The "user_files" subdirectory contains files uploaded by users, such as avatars and illustrations for blog posts.
I'd like the flask-static-digest extension to only apply to the "static_folder/bundle" subdirectory, not "static_folder/user_files".
At the moment, I don't see a way to set up flask_static_digest like this.
The text was updated successfully, but these errors were encountered: