Skip to main content
Help us improve Python packaging – donate today!

A collection of stuff to improve django web performance.

Project Description

A collection of stuff to improve django web performance.

Domain sharding

Domain sharding is an optimization technique for parallelization of resource loading. If you have a lot of media files on your page you might want them to be downloaded from different domains, as web browsers have limits on how many files they can grab at once. Domain sharding reduces the overall page load time and is widley used on rich media sites, like Facebook, Youtube, etc.

It works as a customized django file storage, overriding standard url method.

Installation & setup

Recommended way to install is pip:

pip install django-webperf

Make sure to change your DEFAULT_FILE_STORAGE in to use sharding site-wide:




Default:'' (empty string)

A pattern to generate media_urls with a standard format placeholder. E.g. http://img{0}



Number of domains you want to use to split your media content.

Don’t use too many domains, becasue it will increase DNS lookup time.

Release history Release notifications

This version
History Node


Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
django-webperf-0.1.tar.gz (4.0 kB) Copy SHA256 hash SHA256 Source None Sep 25, 2011

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page