Metadata-Version: 1.1
Name: django_compressor_celery
Version: 0.2
Summary: Integrate django_compressor with celery
Home-page: http://github.com/jarus/django_compressor_celery/
Author: Christoph Heer
Author-email: christoph@thelabmill.de
License: MIT
Description: django-compressor-celery
        ========================
        
        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 <http://django-compressor.readthedocs.org/en/latest/quickstart/#installation>`_ and `celery for django <http://docs.celeryproject.org/en/latest/django/first-steps-with-django.html>`_
        * 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 <http://docs.celeryproject.org/en/latest/userguide/tasks.html#task-options>`_ you should use the settings key ``COMPRESS_CELERY_TASK_CONFIG`` which contains a dict with the options. (Inspired by `django-celery-email <https://pypi.python.org/pypi/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.
        
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: Framework :: Django
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2.6
Classifier: Programming Language :: Python :: 2.7
Classifier: Topic :: Internet :: WWW/HTTP
