Fanstatic can be integrated with a number of web frameworks:
- Zope/Grok through zope.fanstatic
- Pyramid through pyramid_fanstatic
- Flask through Flask-Fanstatic
- Django through django_fanstatic.
In order to integrate Fanstatic with your web framework, make sure the following conditions are met:
- base_url: if your web framework supports virtual hosting, make sure
to set the
base_urlattribute on the
- Error pages: if your web framework renders error pages, make sure to
NeededResourcesbefore rendering the error page, in order to prevent resources from the original page ‘leaking’ onto the error page.