>
> #######################################
> #######      STORAGE ##################
> #######################################
>
>     # The custom storage just allows definition of different 'locations' 
so media goes in media/ static goes in /static
    # within the bucket. Otherwise same as S3 boto storage. 

>
> # Bucket and creds
> AWS_STORAGE_BUCKET_NAME =  '......'
> AWS_ACCESS_KEY_ID = '....'
> AWS_SECRET_ACCESS_KEY = '...'
>
>
> AWS_PRELOAD_METADATA = True
> AWS_QUERYSTRING_AUTH = False
> AWS_S3_CUSTOM_DOMAIN = '%s.s3.amazonaws.com' % AWS_STORAGE_BUCKET_NAME
>
> # Static storage
> STATICFILES_LOCATION = 'static'
> STATICFILES_STORAGE = 'custom_storages.StaticStorage'
> STATIC_ROOT = os.path.join(PROJECT_ROOT, 'temp_static/')
> STATIC_URL = "https://%s/%s/"; % (AWS_S3_CUSTOM_DOMAIN, 
> STATICFILES_LOCATION)
> ADMIN_MEDIA_PREFIX = STATIC_URL + 'grappelli/'
>
>
> # Media storage
> MEDIAFILES_LOCATION = 'media'
> MEDIA_URL = "https://%s/%s/"; % (AWS_S3_CUSTOM_DOMAIN, MEDIAFILES_LOCATION)
> #MEDIA_ROOT = os.path.join(PROJECT_ROOT, 'temp_media')  # bad request 400 
> in admin unless commented out
> DEFAULT_FILE_STORAGE = 'custom_storages.MediaStorage'
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to