title: Static files are not loaded in a Django website hosted on Bluehost
body: <p>as you can see it live on the website: <a href="http://www.workshopvenues.com" rel="nofollow">http://www.workshopvenues.com</a>
  the <strong>static</strong> files that are under /assets/* are not loaded correctly.</p>
  
  <p>I expect this url (for example) to be valid: <a href="http://www.workshopvenues.com/assets/ico/apple-touch-icon-144-precomposed.png" rel="nofollow">http://www.workshopvenues.com/assets/ico/apple-touch-icon-144-precomposed.png</a>
  but it's not (as you can verify clicking on it).</p>
  
  <p>This is what I have in my <strong>settings.py</strong></p>
  
  <pre><code>STATIC_ROOT = '/home6/ptlugorg/workshopvenues/workshopvenues/workshopvenues/assets/'
  
  STATIC_URL = 'http://www.workshopvenues.com/assets/'
  
  STATICFILES_DIRS = (
      '/home6/ptlugorg/workshopvenues/workshopvenues/workshopvenues/assets/',
  )
  </code></pre>
  
  <p>The paths are correct, I've double checked them:</p>
  
  <pre><code>ptlugorg@ptlug.org [~/workshopvenues/workshopvenues/workshopvenues/assets]# pwd
  /home6/ptlugorg/workshopvenues/workshopvenues/workshopvenues/assets
  </code></pre>
  
  <p>if it may help, I'm serving the website using fastcgi. I've followed the instructions here <a href="http://simplyargh.blogspot.co.uk/2012/04/python-27-django-14-on-bluehost.html" rel="nofollow">http://simplyargh.blogspot.co.uk/2012/04/python-27-django-14-on-bluehost.html</a></p>
  
  <p>and these are my configuration files.</p>
  
  <p><strong>.htaccess</strong></p>
  
  <pre><code>ptlugorg@ptlug.org [~/public_html/workshopvenues]# cat .htaccess 
  AddHandler fcgid-script .fcgi
  RewriteEngine On
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteRule ^(.*)$ workshopvenues.fcgi/$1 [QSA,L]
  </code></pre>
  
  <p><strong>workshopvenues.fcgi</strong></p>
  
  <pre><code>ptlugorg@ptlug.org [~/public_html/workshopvenues]# cat workshopvenues.fcgi 
  #!/home6/ptlugorg/python27/bin/python27
  import sys, os
  
  # Add a custom Python path.
  sys.path.insert(0, "/home6/ptlugorg/python27")
  sys.path.insert(13, "/home6/ptlugorg/workshopvenues/workshopvenues")
  
  os.environ['DJANGO_SETTINGS_MODULE'] = 'workshopvenues.settings'
  from django.core.servers.fastcgi import runfastcgi
  runfastcgi(method="threaded", daemonize="false")
  </code></pre>
  
  <p>Just in case you are wondering about the <strong>permissions</strong>:</p>
  
  <pre><code>ptlugorg@ptlug.org [~/workshopvenues/workshopvenues/workshopvenues]# ls -al
  total 52
  drwxr-xr-x  3 ptlugorg ptlugorg 4096 Aug  9 03:31 ./
  drwxr-xr-x  4 ptlugorg ptlugorg 4096 Aug  9 02:52 ../
  drwxr-xr-x 11 ptlugorg ptlugorg 4096 Aug  8 15:33 assets/
  -rw-r--r--  1 ptlugorg ptlugorg    0 Aug  8 14:23 __init__.py
  -rw-r--r--  1 ptlugorg ptlugorg  144 Aug  8 14:25 __init__.pyc
  -rw-r--r--  1 ptlugorg ptlugorg  430 Aug  8 15:20 secrets.py
  -rw-r--r--  1 ptlugorg ptlugorg  527 Aug  8 15:20 secrets.pyc
  -rw-r--r--  1 ptlugorg ptlugorg 5779 Aug  9 03:31 settings.py
  -rw-r--r--  1 ptlugorg ptlugorg 3399 Aug  9 03:31 settings.pyc
  -rw-r--r--  1 ptlugorg ptlugorg  614 Aug  8 14:23 urls.py
  -rw-r--r--  1 ptlugorg ptlugorg  467 Aug  8 15:23 urls.pyc
  -rw-r--r--  1 ptlugorg ptlugorg 1150 Aug  8 14:23 wsgi.py
  -rw-r--r--  1 ptlugorg ptlugorg 1058 Aug  8 15:21 wsgi.pyc
  
  ptlugorg@ptlug.org [~/workshopvenues/workshopvenues/workshopvenues/assets]# ls -al
  total 48
  drwxr-xr-x 11 ptlugorg ptlugorg 4096 Aug  8 15:33 ./
  drwxr-xr-x  3 ptlugorg ptlugorg 4096 Aug  9 03:31 ../
  drwxr-xr-x  5 ptlugorg ptlugorg 4096 Aug  8 15:33 admin/
  drwxr-xr-x  5 ptlugorg ptlugorg 4096 Aug  8 14:23 bootstrap/
  drwxr-xr-x  2 ptlugorg ptlugorg 4096 Aug  8 14:23 css/
  drwxr-xr-x  5 ptlugorg ptlugorg 4096 Aug  8 15:33 django_extensions/
  drwxr-xr-x  2 ptlugorg ptlugorg 4096 Aug  8 14:23 font-awesome/
  drwxr-xr-x  2 ptlugorg ptlugorg 4096 Aug  8 14:23 ico/
  drwxr-xr-x  7 ptlugorg ptlugorg 4096 Aug  8 14:23 img/
  drwxr-xr-x  2 ptlugorg ptlugorg 4096 Aug  8 14:23 js/
  drwxr-xr-x  5 ptlugorg ptlugorg 4096 Aug  8 14:23 prettyPhoto/
  </code></pre>
  
  <p>Everything seems correct, but it still doesn't work as expected. Do you have any idea of where the problem could be? What tests I could do to verify if something is wrong?</p>
  
  <p>Thanks for your help!</p>