Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update extra_requires with recent changes fix #389 #2

Closed
wants to merge 123 commits into from

Conversation

browniebroke
Copy link

As per PR comment:

  • remove deprecated backend
  • correct extra require for google cloud
  • update minimum version for dropbox

jschneier and others added 30 commits March 3, 2017 14:54
When using the key "Cache-Control" in AWS_S3_OBJECT_PARAMETERS, I got this error:

> ValueError: Invalid extra_args key 'Cache-Control', must be one of: ACL, CacheControl, ContentDisposition, ContentEncoding, ContentLanguage, ContentType, Expires, GrantFullControl, GrantRead, GrantReadACP, GrantWriteACP, Metadata, RequestPayer, ServerSideEncryption, StorageClass, SSECustomerAlgorithm, SSECustomerKey, SSECustomerKeyMD5, SSEKMSKeyId, WebsiteRedirectLocation

I fixed it by replacing "Cache-Control" with "CacheControl".

I fixed the documentation to use the correct key, and to remove the word arbitrary, since it doesn't seem arbitrary to me.
* Add security token support

* Add session token support for s3boto3
* Add a centralized check for getting a key with preload metadata logic

* Fix timezone overwriting for collectstatic on Django < 1.10

* Add support for `get_modified_time`
Included note indicating that AWS_S3_CUSTOM_DOMAIN must *not* end in a slash. It is required that `STATIC_URL` must end in a trailing slash, and if users are using CloudFront, their `STATIC_URL` and `AWS_S3_CUSTOM_DOMAIN` values will be the same. It is very easy for users to miss the trailing `/` and instead set `AWS_S3_CUSTOM_DOMAIN = STATIC_URL`.
The "gcloud" Python module is now called "google.cloud", so use the new
name.  This means the name of this module needs to change too, since it
can no longer be "google".
This decorator is required to allow Django 1.7 migrations to serialize
instances of this class.  Without the decorator, running "makemigrations"
on code like the following will fail with a "Cannot Serialize" error.

from storages.backends.gcloud import GoogleCloudStorage

gcs = GoogleCloudStorage()

class SomeModel(models.Models):
    some_field = models.FileField(storage=gcs)
We want to use this in the Google Cloud Storage backend as well.

This is a separate commit so we can verify the clean_name tests in s3boto
still pass (before I move those as well).
This is used by s3boto to support the AWS_LOCATION setting, which isn't
needed by Google Cloud Storage
@browniebroke
Copy link
Author

Great work for jschneier#274, shame the PR isn't merged. This should address the comments on it, and minimize your time.

Appreciate you might not be using this anymore maybe?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.