Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

Django SSI library for use with Nginx

Project Description


{% load nginxssi_tags %}
{% nginxssi %}
    <b> okidoki </b> {%now "jS F Y H:i"%} Hello {{foo}}
{% endnginxssi %}

Renders inline as:

<!--# include virtual="/nginxssi/a3e5fa678243e0bab620fbca75f6601d/" -->

A request to /nginxssi/a3e5fa678243e0bab620fbca75f6601d/ renders:

<b> okidoki </b> 25th January 2011 13:26 Hello bar

Nginx will stitch these two together to form:

<b> okidoki </b> 25th January 2011 13:26 Hello bar

How it works

  1. The template is cached in its raw unrendered form
  2. The template string’s md5 hash is used as a cache key
  3. The template’s context is stored with the cache key as a prefix
  4. A request to the SSI url looks up the template and the context in the cache, renders it and returns the HttpResponse

Release History

This version
History Node


History Node


Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Hash SHA256 Hash Help Version File Type Upload Date
(8.9 kB) Copy SHA256 Hash SHA256
2.6 Egg May 27, 2011
(5.0 kB) Copy SHA256 Hash SHA256
Source May 27, 2011

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting