I got it to work but the uploading pictures using mezzanine admin dash is super 
slow and I never found a fix for it to see why.


Regards,
Salar Rahmanian

> On Apr 14, 2018, at 8:34 AM, Paul Tremblay <paulhtremb...@gmail.com> wrote:
> 
> Did you ever get this fixed? We deploy Django at work using EC2 + S3. 
> 
>> On Tuesday, January 26, 2016 at 4:27:29 AM UTC-8, Salar Rahmanian wrote:
>> 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 a topic in the Google 
> Groups "Mezzanine Users" group.
> To unsubscribe from this topic, visit 
> https://groups.google.com/d/topic/mezzanine-users/gELFQLtqkLo/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to 
> mezzanine-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

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