title: Setting up Pyramid Web Framework | FCGI on Shared Hosting
body: <p>How can I create a simple FCGI program in my ~/public_html that will be executed that will dispatch web requests to my pyramid website?</p>
  
  <p>In django, using the code below works fine for me:</p>
  
  <pre><code>#!/usr/local/bin/python2.6
  
  import sys
  import os
  
  sys.path.append('/home/username/local/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>I'm stuck at the moment. By the way, This is my 2nd day in learning pyramid.</p>