title: Wagtail app on Django on FastCGI on shared hosting
body: <p>I'm using A Small Orange's shared hosting, and have set up Django to run in Virtualenv with FastCGI as per their tutorial.</p>
  
  <p>I'm trying to setup Wagtail, a Django-variant CMS. 
  Am assuming it I run it as an Django app within Django in a virtualenv interfaced with FastCGI. But I get an "Unhanded Expection was thrown by the application" when I run. </p>
  
  <p>my dispatch.fcgi file read:</p>
  
  <pre><code>#!/home/username/.env/env/bin/python
  
  import sys
  import os
  
  sys.path.insert(0, '/home/username/.env/lib/python2.6/site-packages')
  
  os.environ['DJANGO_SETTINGS_MODULE'] = 'myproj.settings'
  
  from django.core.servers.fastcgi import runfastcgi
  runfastcgi(method="threaded", daemonize="false")
  </code></pre>
  
  <p>my .htaccess file read:</p>
  
  <pre><code>AddHandler fcgid-script .fcgi
  RewriteEngine On
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteRule ^(.*)$ dispatch.fcgi/$1 [QSA,L]
  </code></pre>
  
  <p>My file structure is:</p>
  
  <pre><code>~/website/myproj # created using django-admin.py startproj
  ~/website/myproj/wagtailwebsite #created using manage.py startapp
  </code></pre>
  
  <p>Wagtailwebsite's settings.py and urls.py files are edited as in the <a href="https://gist.github.com/tomdyson/8974456" rel="nofollow">Wagtail tutorial</a></p>
  
  <p>Unfortunately I cannot run it on a local server to test due to restricted permissions on a shared hosting.</p>
  
  <p>Am a major noob at this but if you see Wagtail's UI you'll know why I'm throwing myself into the deep end. Do let me know if I'm providing enough information!</p>