I've been poking at static files on Mezzanine for several days trying to tease out what is wrong. Here's what I think I know:
I am using Fabric to deploy Mezzanine onto a Vagrant VM. I have been getting an "Internal Server Error" message when setting DEBUG = False. When DEBUG = True, the site loads fine. Per the docs this appears to be due to the static files not being served in the first case. Initially, I found in the ngnix error logs that there was a problem with permissions on the projectname/project/static folder where all the static files had been copied during the Fabric deploy. The server was denied permission to the favicon.ico file. It looked like the ngnix user did not have the appropriate permissions to the top-level /home folder (700 with root:root), and thus couldn't access the project folder. After looking at the staticfiles docs in Django it looked like the best thing to do was to move the static files into a location like /var/www/example.com/static and serve them from there. I created the directory, copied the static files, and changed the ngnix config file for the site to serve the static files from that location. I also set STATIC_ROOT in local_settings.py to that location. However, I continued to get the same "Internal Server Error" message with DEBUG = False. However, the ngnix errors are no longer coming up, and nothing is showing up in the console of the browser either. Any suggestions on the next step? -- 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.