Hi,
I'm having trouble setting up a django project on heliohost. I have tried to track down the problem and it seems to be coming from dispatch.wsgi. Here is public_html/dispatch.wsgi:
import os
import sys
output = ""
sys.path.append('/home/amoradi/public_html')
sys.path.append('/home/amoradi/public_html/mysite')
os.environ['DJANGO_SETTINGS_MODULE'] = 'mysite.settings' #my project name mysite
os.environ['PYTHON_EGG_CACHE'] = '/home/amoradi/.python_egg_cache' #right 775
try:
import django
except Exception, e:
output = "import django error: %s" % e
def application(environ, start_response):
status = '200 OK'
#output = 'Hello World!'
response_headers = [('Content-type', 'text/plain'),
('Content-Length', str(len(output)))]
start_response(status, response_headers)
return [output]
When I try to go to load a page, it gives me: "import django error: No module named django." Is there any problem with the django installation or am I missing something?
username: amoradi
url: fengshaun.heliohost.org
Thank you.