Take the 2-minute tour ×

I'm using a Github post-recieve hook to run a bash file that pulls both my repos.

cd ~/public_html/repo_static
env -i /usr/bin/git pull origin master
cd ~/django-code/repo_django
env -i /usr/bin/git pull origin master

I also want to collectstatic on the django repo. How do I automate the "yes" response to that?

I can't use Fabric because unfortunately the team chose to work with Python 2.4 for the time being. Is there a way to automate collectstatic without Fabric?

share|improve this question

1 Answer 1

up vote 24 down vote accepted
python manage.py collectstatic --noinput
share|improve this answer
exactly what I needed. thanks. –  Artur Sapek Jan 2 '12 at 21:19

Your Answer


