#!/home/alberto/python/bin/python

# setup the virtualenv
import os
os.environ.setdefault('PATH', '/bin:/usr/bin')
os.environ['PATH'] = '/home/alberto/python/bin:' + os.environ['PATH']
os.environ['VIRTUAL_ENV'] = '/home/alberto/python/bin'
os.environ['PYTHON_EGG_CACHE'] = '/home/alberto/python/bin'

os.chdir('/home/alberto/public_html/djhome')
import sys

# Add a custom Python path.
sys.path.insert(0, "/home/alberto/public_html/djhome")

# Set the DJANGO_SETTINGS_MODULE environment variable  to the file in my
# application directory with the db settings etc.
# (filename minus the extension ".py")
os.environ['DJANGO_SETTINGS_MODULE'] = "settings"

from django.core.servers.fastcgi import runfastcgi
runfastcgi(method="threaded", daemonize="false")
