Hi, as per this tutorial (http://docs.webfaction.com/software/django/config.html?highlight=django%20static#serving-django-static-media) I have set a static app to server my static content. It seems to work.
However I also have a /media folder in my app that holds user uploaded media (mainly user avatars). I have added this folder in my settings.py like this
I finally run
In the control panel I have a symbolic link to static-only app that is mount on /media/. And I have added this site to my website.
question 1: do I need the symbolic link to /media/? Or now that I placed /media/ folder in
question 2: Do I need to run
asked May 10 '12 at 01:08
A1: You do still need the symbolic link, defining them in Django does get them serving with apache, but not the front-end ngnix server.
A2: You should not need to run it more than once, it will copy the default files from the default locations to the main app location, any manual changes after that do not need collectstatic ran again, however some modules will require you to run it when you are installing them. More info can be found in the Django docs.
answered May 10 '12 at 02:03