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

Set template context debug=True with "cactus serve" unless "cactus serve --no-debug" #85

Open
wants to merge 2 commits into
base: v3
Choose a base branch
from

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.
@@ -48,7 +48,7 @@ def _create_connection(self):
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