django-purls icondjango-purls 0.3

Is the simplest way to enable parallelized download of static content on your site
django-purls is a Django app that provides the simplest way to enable parallelized download of static content on your site. Adding parallelize downloads to your pages may increase response times by 30%.

See http://yuiblog.com/blog/2007/04/11/performance-research-part-4/ for a deeper analysis.

django-purls maps static content URLs to one of the configured servers in the PURL_SERVERS settings. Django-Purls uses a consistent hashing algorithm allowing you to add or remove servers without completely re-shuffling all URL mappings and still utilize browser cache.

Using

1. Wrap your static content (ex. images) in the purl template tag.

{% load purl_tags %}

{% for image in image_list %}
 
{% endfor %}


2. Install Djagno app and tell Django-Purls about your asset servers

INSTALLED_APPS = (
 ...
 'purls',
)

PURL_SERVERS = {
 # rewrite all URLs using the purl template tag to one of the following
 # servers
 'default': ('assets0.example.com', 'assets1.example.com',
 'assets2.example.com'),
}


 Profit

Setup

easy_install django-purls

Supports Python 2.5 or later

last updated on:
January 27th, 2012, 14:28 GMT
price:
FREE!
developed by:
Neil Chintomby
license type:
BSD License 
category:
ROOT \ Internet \ HTTP (WWW)

FREE!

In a hurry? Add it to your Download Basket!

user rating

UNRATED
0.0/5
 

0/5

Add your review!

SUBMIT