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 10 May '12, 01:08 xpanta |
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 10 May '12, 02:03 johns Thanks. In the docs it says
(10 May '12, 02:55)
xpanta
1
That's correct, it wouldn't be needed, as your static files are collected elsewhere.
(10 May '12, 03:03)
todork
|