Skip to content

Conversation

@amsb
Copy link

@amsb amsb commented May 15, 2014

To facilitate easily disabling tracking code and other "production only" bits, imitate Django DEBUG=True and django.core.context_processors.debug when serving files locally. Disable with cactus serve —no-debug.

amsb added 2 commits May 15, 2014 13:20
To facilitate easily disabling tracking code and the like, imitate
Django DEBUG=True and django.core.context_processors.debug. Disable
with cactus serve —no-debug.
Explicitly setting host in s3_connect to s3.amazonaws.com interferes
with boto using correct host for region, causing Broken Pipe failures
when uploading larger files.
aws_access_key, aws_secret_key = self.credentials_manager.get_credentials()

return boto.connect_s3(aws_access_key.strip(), aws_secret_key.strip(),
host=self._s3_api_endpoint, is_secure=self._s3_is_secure, port=self._s3_port,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the changes in this file have nothing to do with the PR... +1 for the rest of the changes!

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.

2 participants