Actually I misstated. I am only trying to solve this for the MEDIA_URL. Specifically for the image that would be selected as the default image in a Facebook share open graph scenario in a blog post. The STATIC_URL can have the same domain across multiple sites without Facebook reach issues.
I'll report back on the solution I go with. Thanks On Friday, November 20, 2015 at 6:28:04 PM UTC-8, Matt Mansour wrote: > > One approach I am looking into is adding / overiding the static template > context processor. But I am wondering if there is a cleaner way. Or > something simple that I am overlooking. > > On Friday, November 20, 2015 at 4:48:28 PM UTC-8, Matt Mansour wrote: >> >> Howdy all - >> >> I am working on multi tenancy mezzanine project. I define a static URL in >> settings (in this case a Cloudfront URL). However, the static URL needs to >> change to match the site I am accessing. >> >> For example, if I am on *example.com <http://example.com>* I want my >> static url to render as *media.example.com/static/ >> <http://media.example.com/static/>... * Likewise, if I am on *example2.com >> <http://example2.com>* I want my static url to render as >> *media.example2.com/static/ >> <http://media.example2.com/static/>* >> >> Has anyone here had to implement something similar? >> >> Unfortunately when images are rendered from a different domains than the >> site domain strange things can happen; like Facebook share reach >> diminishing, as their current algo seems to associate that sort of thing as >> spam. >> >> Cheers >> > -- You received this message because you are subscribed to the Google Groups "Mezzanine Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
