Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 956 Categories, Downloaded 50.160.047 Times

django-phased 0.5.0

Company: Cody Soyland
Date Added: July 14, 2013  |  Visits: 336

django-phased

Report Broken Link
Printer Friendly Version


Product Homepage
Download (32 downloads)



This technique has been desribed by Adrian Holovaty in this blog post and previously by Honza Kral. The idea is to first render the template with certain blocks denoted as "phased," such that they will not be rendered, and will remain valid template code that can be rendered with a second pass.<br /><br />The second pass fetches the partially-rendered template from the cache and performs a second render on it, using RequestContext to provide user-specific context to the template. This enables very fast generation of pages that have user-specific content, by bypassing the need to use the CACHE_MIDDLEWARE_ANONYMOUS_ONLY setting.<br /><br />This implementation uses a secret delimiter that makes it safe against the possibility of template code injection vulnerabilities, as it only passes any given text through the template parser once. The phased blocks can also contain cached context.<br /><br />django-phased contains a templatetag, phased, 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.<br /><br />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.<br /><br />md5=6450ac79215160a4a43bb476f73afe39

Requirements: No special requirements
Platforms: *nix, Linux
Keyword: Blocks Cache Contextdjangophased Django Django Phased Middleware Pages Parts Phased Processes Render Rendered Response Skipped Template Updatecachemiddleware Userspecific
Users rating: 0/10

License: Freeware Size: 10.24 KB
USER REVIEWS
More Reviews or Write Review


DJANGO-PHASED RELATED
Network & Internet  -  Dogslow 0.5
Dogslow is Django watchdog middleware class that logs tracebacks of slow requests. It started as an internal project inside Bitbucket to help trace operational problems.
20.48 KB  
Modules  -  Advanced Profile Kit 6.x-1.0
Advanced Profile Kit provides building blocks for putting together fancy user profile pages like those commonly found on social networking sites. It is meant to work with Panels, though the provided pieces can be used in the theme layer if you...
30.72 KB  
Network & Internet  -  django-threaded-multihost 1.4-1
django-threaded-multihost is a Django plugin that provides support utilities to enable easy multi-site awareness in Django apps. Using the middleware provided, you can "easily" provide multi-site awareness to any project.
10.24 KB  
Utilities  -  django-honeypot 0.1.2
Django honeypot field utilities django-honeypot is a Django plugin that provides utilities for preventing automated form spam. Provides template tags, view decorators, and middleware to add and verify honeypot fields to...
10.24 KB  
Telephone Utilities  -  django-form-utils 0.1.8
django-form-utils is a Django application that provides BetterForm and BetterModelForm classes which are subclasses of django.forms.Form and django.forms.ModelForm, respectively. BetterForm and BetterModelForm allow subdivision of forms into...
1.23 MB  
Network & Internet  -  django-mobile 0.2.3
django-mobile provides a simple way to detect mobile browsers and gives you tools at your hand to render some different templates to deliver a mobile version of your site to the user. The idea is to keep your views exactly the same but...
10.24 KB  
Programming  -  django-yama 0.1
`django-yama' (Yet Another Menuing App) is a fairly generic menuing application for Django 1.0 (and up). It supports hierarchical (tree-structure) menus of arbitrary depth, and enables you to create menus linking to models and views from other...
61.44 KB  
Offline Browser Tools  -  IE Cache&History Viewer 1.2.1.1
The ‘IE Cache and History viewer‘ is a simple and fast freeware utility that allows you manage the internet explorer cache. You can examine web pages you have visited and show them in the internal web browser, view a content of temporary...
641 KB  
Specialized Tools  -  huDjango 0.89p2
The huDjango package contains a collection of small extensions th the Django Web framework. Here are some key features of "huDjango": ?*A* auth.backends.EmailBackend - authentication with E-Mail adress ?*A*...
30.72 KB  
Network & Internet  -  HamlPy 0.80.4
HamlPy is a tool for Django developers who want to use a HAML like syntax for their templates. HamlPy is not a template engine in itself but simply a compiler which will convert HamlPy files into templates that Django can understand.
10.24 KB  
NEW DOWNLOADS IN LINUX SOFTWARE, NETWORK & INTERNET
Linux Software  -  EasyEDA PCB Designer for Linux 2.0.0
EasyEDA, a great web based EDA(Electronics Design Automation) tool, online PCB tool, online PCB software for electronics engineers, educators, students, makers and enthusiasts. Theres no need to install any software. Just open EasyEDA in any...
34.4 MB  
Linux Software  -  wpCache® WordPress HTTP Cache 1.9
wpCache® is a high-performance, distributed object, caching system application, generic in nature, but intended for use in speeding up dynamic web applications, by decreasing database load time. wpCache® decreases dramatically the page...
3.51 MB  
Linux Software  -  Polling Autodialer Software 3.4
ICTBroadcast Auto Dialer software has a survey campaign for telephone surveys and polls. This auto dialer software automatically dials a list of numbers and asks them a set of questions that they can respond to, by using their telephone keypad....
488 B  
Linux Software  -  Total Video Converter Mac Free 3.5.5
Total Video Converter Mac Free developed by EffectMatrix Ltd is the official legal version of Total Video Converter which was a globally recognized brand since 2006. Total Video Converter Mac Free is a free but powerful all-in-one video...
17.7 MB  
Linux Software  -  Skeith mod_log_sql Analyzer 2.10beta2
Skeith is a php based front end for analyzing logs for Apache using mod_log_sql.
47.5 KB  
Network & Internet  -  Free WiFi Hotspot 3.3.1
Free WiFi Hotspot is a super easy solution to turn your laptop or notebook into a portable Wi-Fi hotspot, wirelessly sharing your internet connections like DSL, Cable, Bluetooth, Mobile Broadband Card, Dial-Up, etc. through the built-in wireless...
1.04 MB  
Network & Internet  -  Easy Uploads 1.8
Easy uploads is a file storage media streaming application designed by Filestreamers that allows you to upload, store, and stream your files from their virtually unlimited file storage server. Easy Uploads can backup,share, and stream your files...
615.97 KB  
Network & Internet  -  PacketFence ZEN 3.1.0
PacketFence is a fully supported, trusted, Free and Open Source network access control (NAC) system. Boosting an impressive feature set including a captive-portal for registration and remediation, centralized wired and wireless management, 802.1X...
1024 MB  
Network & Internet  -  django-dbstorage 1.3
A Django file storage backend for files in the database.
10.24 KB  
Network & Internet  -  SQL Inject Me 0.4.5
SQL Inject Me is a Firefox extension used to test for SQL Injection vulnerabilities. The tool works by submitting your HTML forms and substituting the form value with strings that are representative of an SQL Injection attack.
133.12 KB