title: Why won't newly installed Django app with NGINX serve static assets?
body: <p>I have a Mac running OS X 10.9.3. I am trying to setup a Django application backed by a PostgreSQL database served by gunicorn, with static assets served by NGINX. I'm an old hand at Django with MySQL running with the developement server (<code>manage.py runserver</code>). But I'm new to setting it up with virtualenv, gunicorn and NGINX. So I'm following the instructions <a href="https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-django-with-postgres-nginx-and-gunicorn" rel="nofollow noreferrer"><strong>here</strong></a>.</p>
  
  <p>My Django Project is being served successfully at <code>http://localhost:3026</code>. As a test of the database connectivity, I wanted to take a look at the Django Admin interface. I visited <code>http://localhost:3026/admin/</code>. I have included a screenshot below.</p>
  
  <p>Why does this admin page look so ugly? It lacks the neccessary graphical interface and css that it is supposed to have? It looks like NGINX is not properly serving up those static assets. How can I troubleshoot and fix this issue?</p>
  
  <p>I even did <code>python manage.py collectstatic</code>. That went and successfully copied all the static files to where they were supposed to (I think?) live in <code>/opt/myenv/static</code>. You can see the output of that command <a href="https://gist.github.com/syedsaqibali/77877df8941af96f0711" rel="nofollow noreferrer">here</a>. I then re-started gunicorn and nginx. I thought that would fix it. But unfortunately it didn't. The issue remains. In my Django settings.py file, I have configured the STATIC variables as follows:</p>
  
  <pre><code>STATICFILES_FINDERS = (
      'django.contrib.staticfiles.finders.FileSystemFinder',
      'django.contrib.staticfiles.finders.AppDirectoriesFinder',
      'djangobower.finders.BowerFinder',
  )
  STATIC_ROOT = "/opt/myenv/static/"
  STATIC_URL = '/static/'
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/Aj89s.png" alt="enter image description here"></p>