Skip to content

Instantly share code, notes, and snippets.

@jarcoal
Created August 31, 2012 20:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jarcoal/3558835 to your computer and use it in GitHub Desktop.
Save jarcoal/3558835 to your computer and use it in GitHub Desktop.
Django Static Files Config for S3
DEFAULT_FILE_STORAGE = STATICFILES_STORAGE = 'storages.backends.s3boto.S3BotoStorage'
AWS_ACCESS_KEY_ID = os.environ.get('AWS_ACCESS_KEY_ID')
AWS_SECRET_ACCESS_KEY = os.environ.get('AWS_SECRET_ACCESS_KEY')
AWS_STORAGE_BUCKET_NAME = 'mybucket'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment