[Grok-dev] fanstatic and grok without wsgi

Jan-Jaap Driessen jdriessen at thehealthagency.com
Sun Nov 20 09:41:04 UTC 2011

On 28 October 2011 15:14, Wolfgang Schnerring <ws at gocept.com> wrote:
> Hi,
> I've got an (old-ish) grok project that runs on zope.app.twisted. Is
> it feasible to get fanstatic to work with that as is, or do I need to
> port it to zope.app.wsgi?
> I've got zope.fanstatic and all, but I wager the Injector is missing,
> and I wonder where it might come from -- even in the zope.app.wsgi
> case.
> Any insights appreciated,
> Wolfgang

Hi Wolfgang,

I guess you could register the fanstatic libraries as
resourceDirectories and have the injector generate URLs to them. You
would still use zope to serve static resources in that case, which
would mean missing one of the main selling points of fanstatic:
offloading of static content. You would also miss out on the bundling
feature and long-term caching and invalidation.

If I were you I'd rewrite the application to zope.app.wsgi.



More information about the Grok-dev mailing list