Hi I am trying to move my Mezzanine site to be hosted on Amazon AWS EC2 
with the static and media files on S3

My settings.py:

# Amazon
AWS_HEADERS = {
        'Expires': 'Thu, 31 Dec 2099 20:00:00 GMT',
        'Cache-Control': 'max-age=94608000',
    }

AWS_STORAGE_BUCKET_NAME = 'xxxxxx'
AWS_QUERYSTRING_AUTH = False
AWS_S3_SECURE_URLS = False

AWS_ACCESS_KEY_ID = env('AWS_ACCESS_KEY_ID')
AWS_SECRET_ACCESS_KEY = env('AWS_SECRET_ACCESS_KEY')
AWS_S3_CUSTOM_DOMAIN = '%s.s3.amazonaws.com' % AWS_STORAGE_BUCKET_NAME
STATICFILES_LOCATION = 'static'
MEDIAFILES_LOCATION = 'media'
STATICFILES_STORAGE = 'custom_storage.StaticStorage'
DEFAULT_FILE_STORAGE = 'custom_storage.MediaStorage'
STATIC_URL = "http://%s/%s/"; % (AWS_S3_CUSTOM_DOMAIN,
                                STATICFILES_LOCATION)
MEDIA_URL = "http://%s/%s/"; % (AWS_S3_CUSTOM_DOMAIN, MEDIAFILES_LOCATION)
MEDIA_ROOT = ''

custom_storage.py is: 

from mezzanine.conf import settings
from storages.backends.s3boto import S3BotoStorage


class StaticStorage(S3BotoStorage):
    location = settings.STATICFILES_LOCATION


class MediaStorage(S3BotoStorage):
        location = settings.MEDIAFILES_LOCATION


Collect static is working fine. 

Here are the issues I am having: 

- When I go to admin panel and want to add a page or a blog the tinyMCE 
dialog is missing 
- When I click Media Library I get error: 500 error
- When looking at existing content in Admin no content shown, but content 
appears on site


Any ideas what could be wrong? 

Thanks.

-- 
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