If I serve my admin media directly from my Django app's Apache instance, my app will run slower and use more memory. So, what's the correct way to serve my admin media on WebFaction? asked 19 Oct '10, 17:04 seanf |
We recommend that you use a static-only symlink application to serve your admin media - details are available in our Django documentation for serving admin media. answered 19 Oct '10, 17:07 seanf I followed the docs http://docs.webfaction.com/software/django/getting-started.html#serving-admin-media , but I also needed to set an alias in httpd.conf: Thanks!
(20 Mar '11, 12:05)
Sergio Rus
Our docs set things up so that your media is served by our front-end webserver and not by your private Apache. If you followed the docs correctly, then you don't need to set up anything in If you take out your
(20 Mar '11, 12:15)
seanf
The response is: error 404. I commented the line and restarted apache. This is my Webfaction config: Apps (control panel) Symbolic link to static-only app name: extra info: Websites (control panel) Site apps: URL path:
(21 Mar '11, 07:40)
Sergio Rus
Try setting ADMIN_MEDIA_PREFIX in your settings.py to '/media/admin', then restart your Apache. Also, check that the 'nginx' user has execute permission on your home directory. If you want us to take a closer look at this, then please open a support ticket. If you reply back here again, please use the 'add new comment' button below this comment, and not the "your answer" field (since you're not answering the original question).
(21 Mar '11, 08:47)
seanf
1
Sorry, but I think there is a bug with comments. I can't see the "add new comment" button: http://i.min.us/ijJa9W.png (firefox 3.6.13 @ Ubuntu linux 10.04) OK It works! I set Thanks
(22 Mar '11, 05:00)
Sergio Rus
|