Skip to main content

Simple two-phase template rendering application useful for caching of authenticated requests.

Project description

A simple two-phase template rendering application useful for caching of authenticated requests.

django-phased contains a templatetag, literal, which defines blocks that are to be parsed during the second phase. A middleware class, PhasedRenderMiddleware, processes the response to render the parts that were skipped during the first rendering.

A special subclass of UpdateCacheMiddleware that drops the “Vary: Cookie” header from response when it updates the cache is also included, which, if used in place of the standard UpdateCacheMiddleware will prevent the cache middleware from varying the cache key based on cookies, thus enabling caching of pages in authenticated sessions.

More documentation coming soon. For now, please look at the example application.

Project details


Download files

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

Source Distribution

django-phased-0.3.0.tar.gz (7.0 kB view details)

Uploaded Source

File details

Details for the file django-phased-0.3.0.tar.gz.

File metadata

File hashes

Hashes for django-phased-0.3.0.tar.gz
Algorithm Hash digest
SHA256 78300d8e5843376df3e70f05f49532c146fbf1f6e0a19a0f8189ab64c8245ee8
MD5 72e18d1f2dc1d9494b993451b92a27f2
BLAKE2b-256 5852e4cbb407b76725e09ddf608ea7ec9f76d4d9cb5cca338b78804025f43dca

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page