Skip to content
This repository has been archived by the owner on Jan 16, 2023. It is now read-only.

Commit

Permalink
document gcloud strategy
Browse files Browse the repository at this point in the history
  • Loading branch information
antonagestam committed Oct 9, 2019
1 parent f37dd1f commit 1527a5f
Showing 1 changed file with 15 additions and 7 deletions.
22 changes: 15 additions & 7 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ A faster collectstatic command.

- ``storages.backends.s3boto.S3BotoStorage`` (deprecated)
- ``storages.backends.s3boto3.S3Boto3Storage``
- ``storages.backends.gcloud.GoogleCloudStorage``

Running Django's ``collectstatic`` command can become painfully slow as more
and more files are added to a project, especially when heavy libraries such as
Expand Down Expand Up @@ -43,20 +44,27 @@ Make sure you have this in your settings file and add ``'collectfast'`` to your
'collectfast',
)
Collectfast comes with these upload strategies:

- ``collectfast.strategies.boto.BotoStrategy`` for
``storages.backends.s3boto.S3BotoStorage``
- ``collectfast.strategies.boto3.Boto3Strategy`` for
``storages.backends.s3boto3.S3Boto3Storage``

**Note:** ``'collectfast'`` must come before ``'django.contrib.staticfiles'`` in
``INSTALLED_APPS``.

**Note:** Boto strategies will set ``preload_metadata`` on the remote storage to
``True``, see `#30 <https://github.com/antonagestam/collectfast/issues/30>`_.


Supported Strategies
~~~~~~~~~~~~~~~~~~~~

+-----------------------------------------------------+-----------------------------------------------+
|Strategy class |Storage class |
+=====================================================+===============================================+
|``collectfast.strategies.boto.BotoStrategy`` |``storages.backends.s3boto.S3BotoStorage`` |
+-----------------------------------------------------+-----------------------------------------------+
|``collectfast.strategies.boto3.Boto3Strategy`` |``storages.backends.s3boto3.S3Boto3Storage`` |
+-----------------------------------------------------+-----------------------------------------------+
|``collectfast.strategies.gcloud.GoogleCloudStrategy``|``storages.backends.gcloud.GoogleCloudStorage``|
+-----------------------------------------------------+-----------------------------------------------+


Usage
-----

Expand Down

0 comments on commit 1527a5f

Please sign in to comment.