This is a very simplified version of my approach:
I typically handle this by injecting a `cdn` variable into the default
rendering environment, and then just having the templates reference
href="${cdn}/path/to/file"
I specify the `cdn` var in the `.ini` file for the application. on
Thanks Steve, hadn't thought of that. I'll take your hand-wavy suggestion
and do some half-arsed testing.
On Tue, Jul 21, 2020 at 11:51 PM Steve Piercy
wrote:
> add_static_view accepts a fully-qualified URL as the first argument.
>
>
>
add_static_view accepts a fully-qualified URL as the first argument.
https://docs.pylonsproject.org/projects/pyramid/en/latest/api/config.html#pyramid.config.Configurator.add_static_view
However for files that are not in your repo/package, I would suggest you not
use add_static_view. Instead
Hi, I need help troubleshooting something. I currently host my static
files within my Pyramid repo, but I want to add more files and host them on
S3. I have tried just about every permutation of the static view config I
can think of, but just can't get it to work.
If the sub url is `/static`