This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!
Project Description

A extension of django_compressor which compress the files by celery workers. The system behind the scene is very simple. The first request on a page with a {% compress %} block will create a celery task which compress this specific block. Instead to wait for the compressed version the first request gets the uncompressed version. After the compress task is finished compressor will deliver the compressed code from the cache directory.

Benefits:
  • Support all features of template inheritance
  • No offline compression by deployment

Install

  • Install as usual django-compressor and celery for django
  • Install django-compressor-celery
  • Add compressor_celery to your installed apps
  • Replace in your template {% load compress %} with {% load compress_celery %}

Configuration

If you want to change some task options you should use the settings key COMPRESS_CELERY_TASK_CONFIG which contains a dict with the options. (Inspired by django-celery-email)

Example:

COMPRESS_CELERY_TASK_CONFIG = {
    'name': 'compressor.lets_compress',
    'queue': 'compressor',
    'ignore_result': False
    ...
}

The default config should work well for the most use cases.

Release History

Release History

0.2

This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
django_compressor_celery-0.2.tar.gz (3.0 kB) Copy SHA256 Checksum SHA256 Source Aug 21, 2013

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