Hello everyone,

I have read some threads about problems in storing Mezzanine statics files 
on S3, but I still didn't get it to work. Actually, my site is based on 
Drum.
Static files are being collected to S3, but apparently the Webserver can 
not find them and the site is messed up. Exception is the media folder 
which is missing.
I guess my nginx.conf need to be updated.

My settings are:

settings.py

#STATIC_URL = "/static/"
> AWS_STORAGE_BUCKET_NAME = "consocstatic"
> STATICFILES_STORAGE = 'storages.backends.s3boto.S3BotoStorage'
> S3_URL = 'http://%s.s3.amazonaws.com/' % AWS_STORAGE_BUCKET_NAME
> STATIC_URL = S3_URL



nginx.conf

    location /static/ {
>         root            /home/ubuntu/consoc/project;
>         access_log      off;
>         log_not_found   off;
>     }
>     location /robots.txt {
>         root            /home/ubuntu/consoc/project/static;
>         access_log      off;
>         log_not_found   off;
>     }
>     location /favicon.ico {
>         root            /home/ubuntu/consoc/project/static/img;
>         access_log      off;
>         log_not_found   off;
>     }
> }


Any help is appreciated.

-- 
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to