Bitbucket is a code hosting site with unlimited public and private repositories. We're also free for small teams!



Author: Jesper Noehr

Fakesi (Fake ESI) provides the functionality to simulate server-side includes (SSI) available in software such as nginx. This is primarily useful for developing locally while still using SSI.

Fakesi is BSD licensed, and requires little more than the included middleware. It also has an ssi templatetag, but that's entirely optional.


Add fakesi to your INSTALLED_APPS setting, and add fakesi.middleware.FakesiMiddleware to your INSTALLED_MIDDLEWARE settings.


It's very simple to use: Either stick <!--# include virtual="/some_url" --> in your templates, or use the included {% ssi "some_url" %} template tag. Fakesi will handle the rest.

Fakesi also adds two methods to every request:

  • is_ssi, which will return True, if the request is coming through an SSI include.
  • is_nginx, which will return True, if the server sends "Nginx-SSI: On" (add with proxy_set_header Nginx-SSI on; in your nginx config.)

Recent activity

Jesper Nøhr

Commits by Jesper Nøhr were pushed to jespern/django-fakesi

9cdca84 - the tests now actually *test* something, adding BeautifulSoup (for parsing the output in the tests) as a tox rqeuirement
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.