<commit_before>Amazon S3
=========

Usage
*****

There is one backend for interacting with S3 based on the boto library. A legacy backend backed on the Amazon S3 Python library was removed in version 1.2.
Another for interacting via Boto3 was added in version 1.5

Settings
--------

To use s3boto set::

    DEFAULT_FILE_STORAGE = 'storages.backends.s3boto.S3BotoStorage'

To allow ``django-admin.py`` collectstatic to automatically put your static files in your bucket set the following in your settings.py::

    STATICFILES_STORAGE = 'storages.backends.s3boto.S3BotoStorage'

Available are numerous settings. It should be especially noted the following:

``AWS_ACCESS_KEY_ID``
    Your Amazon Web Services access key, as a string.

``AWS_SECRET_ACCESS_KEY``
    Your Amazon Web Services secret access key, as a string.

``AWS_STORAGE_BUCKET_NAME``
    Your Amazon Web Services storage bucket name, as a string.
<commit_msg>Adding instructions for s3boto3 usage (#222)<commit_after>Amazon S3
=========

Usage
*****

There is one backend for interacting with S3 based on the boto library. A legacy backend backed on the Amazon S3 Python library was removed in version 1.2.
Another for interacting via Boto3 was added in version 1.5

Settings
--------

To use s3boto set::

    DEFAULT_FILE_STORAGE = 'storages.backends.s3boto.S3BotoStorage'
    
To use the boto3 version of the backend::

    DEFAULT_FILE_STORAGE = 'storages.backends.s3boto3.S3Boto3Storage'
    

To allow ``django-admin.py`` collectstatic to automatically put your static files in your bucket set the following in your settings.py::

    STATICFILES_STORAGE = 'storages.backends.s3boto.S3BotoStorage'

Available are numerous settings. It should be especially noted the following:

``AWS_ACCESS_KEY_ID``
    Your Amazon Web Services access key, as a string.

``AWS_SECRET_ACCESS_KEY``
    Your Amazon Web Services secret access key, as a string.

``AWS_STORAGE_BUCKET_NAME``
    Your Amazon Web Services storage bucket name, as a string.

{'fraction_non_alphanumeric': 0.07719123505976096, 'fraction_numerical': 0.017928286852589643, 'mean_word_length': 4.272965879265092, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5187512', 'n_tokens_mistral': 630, 'n_tokens_neox': 601, 'n_words': 239}