I'm having a similar problem to this getting my django media settings to serve appropriately. I'm running django 1.4.x. I've followed the webfaction instructions to setup two static web applications for my django project - one for static files, and one for media files. My static path is being served by nginx correctly, but my media path is still being served by apache, and I'm hitting 404 errors. Restarting the server didn't seem to help. Here are my settings.py config:
I also tried adding a symbolic link to the app, as mentioned here. Why is this working correctly for static, but not media? Is there some configuration step that's different for media, or did I just miss something else? asked 17 Feb '13, 21:45 ashapiro |
Wayne helped me through the ticketing system. You'll need to mount the media application using Webfaction's control panel to URL specified in your Django settings file. Add the app under the Domains/Websites -> Website -> Contents -> Add a web app. I knew there was something I forgot but I couldn't remember what. answered 17 Feb '13, 22:51 ashapiro |
Could I ask you to please log a support ticket so that we can take a look at your installation? Thanks, Wayne K | WebFaction Support
Just added a ticket. Thanks.