{"id":15572882,"url":"https://github.com/dreipol/django-collectfaster","last_synced_at":"2025-04-24T02:09:44.912Z","repository":{"id":57419451,"uuid":"59212403","full_name":"dreipol/django-collectfaster","owner":"dreipol","description":"Parallel file copying for Django's collectstatic.","archived":false,"fork":false,"pushed_at":"2022-12-26T20:15:05.000Z","size":16,"stargazers_count":18,"open_issues_count":3,"forks_count":4,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-03-30T05:51:15.430Z","etag":null,"topics":["collectstatic","django","parallelization","performance"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dreipol.png","metadata":{"files":{"readme":"README.rst","changelog":"HISTORY.rst","contributing":"CONTRIBUTING.rst","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-05-19T14:09:40.000Z","updated_at":"2024-06-03T04:14:27.000Z","dependencies_parsed_at":"2023-01-31T01:00:23.395Z","dependency_job_id":null,"html_url":"https://github.com/dreipol/django-collectfaster","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dreipol%2Fdjango-collectfaster","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dreipol%2Fdjango-collectfaster/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dreipol%2Fdjango-collectfaster/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dreipol%2Fdjango-collectfaster/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dreipol","download_url":"https://codeload.github.com/dreipol/django-collectfaster/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249031825,"owners_count":21201358,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["collectstatic","django","parallelization","performance"],"created_at":"2024-10-02T18:07:39.936Z","updated_at":"2025-04-17T20:33:09.792Z","avatar_url":"https://github.com/dreipol.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"====================\ndjango-collectfaster\n====================\n\n|pypi| |status|\n\n.. |pypi| image:: https://badge.fury.io/py/django-collectfaster.png\n    :target: https://badge.fury.io/py/django-collectfaster\n    :alt: Latest Version\n\n.. |status| image:: https://img.shields.io/pypi/dm/django-collectfaster.svg\n    :target: https://pypi.python.org/pypi/django-collectfaster\n    :alt: Downloads\n\nThis package extends Django's ``collectstatic`` management command with a ``--faster`` argument that activates the\nparallel file copying. The speed improvement is especially helpful for remote storage backends like S3.\n\nQuickstart\n----------\n\nInstall django-collectfaster::\n\n    pip install django-collectfaster\n\nConfigure installed apps in your ``settings.py`` and make sure ``collectfaster`` is listed before ``django.contrib.staticfiles``::\n\n    INSTALLED_APPS = (\n        ...,\n        'collectfaster',\n        'django.contrib.staticfiles',\n        'storages',\n        ...,\n    )\n\nIf you are using S3 with ``django-storages`` you probably already have this configured in your ``settings.py``::\n\n    AWS_S3_HOST = 's3-eu-west-1.amazonaws.com'\n    AWS_STORAGE_BUCKET_NAME = '\u003cyour_aws_bucket_name\u003e'\n\nSet the storage backends for your static and media files in the ``settings.py``::\n\n    STATICFILES_STORAGE = 'collectfaster.backends.boto.S3StaticStorage'\n    DEFAULT_FILE_STORAGE = 'collectfaster.backends.boto.S3MediaStorage'\n    # STATICFILES_STORAGE = 'collectfaster.backends.boto3.S3Boto3StaticStorage'\n    # DEFAULT_FILE_STORAGE = 'collectfaster.backends.boto3.S3Boto3MediaStorage'\n\n\nYou should split your static and media files on your S3 in different folders and configure it in the ``settings.py``::\n\n    STATICFILES_LOCATION = 'static'\n    MEDIAFILES_LOCATION = 'media'\n\n\nSet the ``STATIC_URL`` at least on your production settings::\n\n    STATIC_URL = 'https://%s/%s/%s/' % (AWS_S3_HOST, AWS_STORAGE_BUCKET_NAME, STATICFILES_LOCATION)\n\n\nUsage\n-----\n\nCollect your static files parallel::\n\n    python manage.py collectstatic --faster\n\n\nSet the amount of workers to 30::\n\n    python manage.py collectstatic --faster --workers=30\n\n\nSpawn workers using ``multiprocessing`` instead of ``gevent``::\n\n    python manage.py collectstatic --faster --use-multiprocessing\n\n\nCredits\n-------\n\nTools used in rendering this package:\n\n*  Cookiecutter_\n*  `cookiecutter-djangopackage`_\n\n.. _Cookiecutter: https://github.com/audreyr/cookiecutter\n.. _`cookiecutter-djangopackage`: https://github.com/pydanny/cookiecutter-djangopackage\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdreipol%2Fdjango-collectfaster","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdreipol%2Fdjango-collectfaster","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdreipol%2Fdjango-collectfaster/lists"}