On Wednesday, January 11, 2012 12:16:50 PM UTC-5, AngeloC wrote:
>
> Thanks Anthony,
>
> Ok, this way I have to play anyway with urls. I'll try another approach.
> There is a way to rewrite the page after rendering, just before the page
> will be sent to the browser?
>
html = response.render()
return replace_image_urls(html)
or maybe WSGI middleware. But that approach seems messy (you have to parse
all the html). And what about images linked from static files (e.g., CSS
background images)?
Anthony