I'm running a Django production server with WSGI & Apache.
I'm wondering if I have to run a collectstatic
each time I modify a little static file.
Isn't there a way to let WSGI or whichever program automate this process ?
Asked
Active
Viewed 4,522 times
5

Pierre de LESPINAY
- 44,700
- 57
- 210
- 307
-
1I've added the the colleccstatic command to my fabric deployment script (push local changes, pull changes from remote, collectstatic, restart server). – Yuji 'Tomita' Tomita Oct 24 '11 at 10:52
1 Answers
4
I use fabric to automate deployment and as one of the steps i just run collectstatic.

jawache
- 830
- 1
- 9
- 15
-
Very interesting, I didn't know Fabric. I'm going to look further into it. – Pierre de LESPINAY Oct 24 '11 at 11:54
-
1I also found this [quite good tutorial](http://yuji.wordpress.com/2011/04/09/django-python-fabric-deployment-script-and-example/) about Fabric with Django – Pierre de LESPINAY Oct 24 '11 at 14:27
-
[This](http://www.clemesha.org/blog/modern-python-hacker-tools-virtualenv-fabric-pip) is the article where i discovered fabric, also introduced me to virtualenv and pip – jawache Oct 26 '11 at 17:00
-
1How do you get fabric to automatically answer yes when it asks if you are sure you want to run this command? – Dustin Jul 10 '12 at 15:35
-
10