{"name":"Django-Pipeline: Asset Packaging for Django Applications","description":"Django-Pipeline is a robust asset packaging library designed for Django projects. It streamlines the process of concatenating and compressing CSS and JavaScript files, enhancing web application performance. This tool also offers built-in JavaScript template support and optional data-URI embedding for images and fonts.","github":"https://github.com/jazzband/django-pipeline","url":"https://osrepos.com/repo/jazzband-django-pipeline","source":"osrepos.com","sourceDescription":"This repository profile is provided by osrepos.com, an open source repository discovery platform.","repositoryProfile":"https://osrepos.com/repo/jazzband-django-pipeline","generatedFor":"open source discovery and AI-assisted research","markdown":"https://osrepos.com/repo/jazzband-django-pipeline.md","json":"https://osrepos.com/repo/jazzband-django-pipeline.json","topics":["Python","Django","Asset Management","Frontend Development","Web Performance","Static Files","Jazzband"],"keywords":["Python","Django","Asset Management","Frontend Development","Web Performance","Static Files","Jazzband"],"stars":null,"summary":"Django-Pipeline is a robust asset packaging library designed for Django projects. It streamlines the process of concatenating and compressing CSS and JavaScript files, enhancing web application performance. This tool also offers built-in JavaScript template support and optional data-URI embedding for images and fonts.","content":"## Introduction\nDjango-Pipeline is an essential asset packaging library for Django, maintained by the Jazzband community. It provides comprehensive solutions for managing static assets, including CSS and JavaScript concatenation and compression. This library helps optimize your Django applications by reducing file sizes and HTTP requests, leading to faster load times.\n\n## Installation\nTo integrate Django-Pipeline into your project, install it using pip:\n\nbash\npip install django-pipeline\n\n\nAfter installation, add `'pipeline'` to your `INSTALLED_APPS` in `settings.py`.\n\n## Examples\nDjango-Pipeline compiles and compresses your asset files from `STATICFILES_DIRS` to `STATIC_ROOT` when you run Django's `collectstatic` command. Here's a quick example to set up basic CSS and JavaScript compilation and compression:\n\npython\n# settings.py\nINSTALLED_APPS = [\n    # ...\n    'pipeline',\n]\n\nSTATICFILES_STORAGE = 'pipeline.storage.PipelineManifestStorage'\n\nSTATICFILES_FINDERS = (\n    'django.contrib.staticfiles.finders.FileSystemFinder',\n    'django.contrib.staticfiles.finders.AppDirectoriesFinder',\n    'pipeline.finders.PipelineFinder',\n)\n\nPIPELINE = {\n    'STYLESHEETS': {\n        'css_files': {\n            'source_filenames': (\n                'css/main.css',\n                'css/normalize.css',\n            ),\n            'output_filename': 'css/styles.css',\n            'extra_context': {\n                'media': 'screen,projection',\n            },\n        },\n    },\n    'JAVASCRIPT': {\n        'js_files': {\n            'source_filenames': (\n                'js/app.js',\n                'js/script.js',\n            ),\n            'output_filename': 'js/main.js',\n        }\n    }\n}\n\n\nRemember that Pipeline typically operates when `DEBUG` is `False`. You may also need to install compilers and compressors, for example, using NPM:\n\npython\n# Example for yuglify\nPIPELINE.update({\n    'YUGLIFY_BINARY': path.join(BASE_DIR, 'node_modules/.bin/yuglify'),\n})\n\n\nFinally, load your static files in your Django templates:\n\nhtml\n{% load pipeline %}\n{% stylesheet 'css_files' %}\n{% javascript 'js_files' %}\n\n\n## Why Use\nUsing Django-Pipeline significantly improves the performance of your Django applications by optimizing frontend assets. It automates the process of combining multiple CSS and JavaScript files into single, compressed bundles, reducing the number of HTTP requests and the overall data transfer size. This leads to faster page load times, a better user experience, and simplifies asset management within your project.\n\n## Links\nFor more detailed information, usage guides, and to contribute, please visit the official resources:\n*   [GitHub Repository](https://github.com/jazzband/django-pipeline){:target=\"_blank\"}\n*   [Official Documentation](https://django-pipeline.readthedocs.io){:target=\"_blank\"}\n*   [Issue Tracker](https://github.com/jazzband/django-pipeline/issues){:target=\"_blank\"}","metrics":{"detailViews":2,"githubClicks":0},"dates":{"published":null,"modified":"2026-07-26T15:41:23.000Z"}}