Skip to content

Instantly share code, notes, and snippets.

@ddahan
Created January 4, 2017 16:17
Show Gist options
  • Save ddahan/12016a94b140b0cb4bf12d126408ac26 to your computer and use it in GitHub Desktop.
Save ddahan/12016a94b140b0cb4bf12d126408ac26 to your computer and use it in GitHub Desktop.
AWS_STORAGE_BUCKET_NAME = "bucket_name"
AWS_ACCESS_KEY_ID = "your_access_key_id"
AWS_SECRET_ACCESS_KEY = "your_secret_access_key"
AWS_S3_HOST = "your_s3_host"
AWS_S3_URL = 'https://{0}.s3.amazonaws.com/'.format(AWS_STORAGE_BUCKET_NAME)
AWS_STATIC_DIR = 'static'
STATIC_URL = AWS_S3_URL + AWS_STATIC_DIR + '/'
STATICFILES_STORAGE = 'your_project_name.storage.StaticRootS3BotoStorage'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment