title: How to ignore directories when running Django collectstatic?
body: <p>I am running a small test project with Django 1.3, Ubuntu 11.10, gunicorn and Nginx, everything in a virtualenv, and now I'm running collectstatic to get my static files into the directory that Nginx serves from.</p>
  
  <p>For simplicity's sake let's say my static directory is something like /home/user/static and my project is at /home/user/project</p>
  
  <p>When I go to /home/user/project I run:</p>
  
  <pre><code>python manage.py collectstatic --noinput
  </code></pre>
  
  <p>and it correctly copies static files from all the apps I have installed. Unfortunately this also copies the files from Django's admin and I would like to skip that one.</p>
  
  <p>I checked the documentation for collecstatic and there´s an -i (--ignore) parameter that takes a glob-style parameter so I tried different variations of the command, as I´m not sure if the ignore pattern refers to my /home/user/static or to the original app directory.</p>
  
  <p>Here some examples that didn´t work:</p>
  
  <pre><code>python manage.py collectstatic --noinput -i /home/user/static/admin
  python manage.py collectstatic --noinput -i /home/user/static/admin/*
  python manage.py collectstatic --noinput -i /home/user/static/a*
  python manage.py collectstatic --noinput -i /home/alexis/.virtualenvs/django13/*
  python manage.py collectstatic --noinput -i /home/user/.virtualenvs/django13/lib/python2.7/site-packages/django/contrib/admin*
  </code></pre>
  
  <p>I found that if I create a symbolic link from /home/user/static/admin to /home/user/.virtualenvs/django13/lib/python2.7/site-packages/django/contrib/admin/media collectstatic will notice and skip copying those files again but anyway, I´d like to make the --ignore option work as it should.</p>
  
  <p>What am I missing?</p>
  
  <p>Thanks for the help!</p>