This question has been flagged
3863 Views

i'm trying this: import sys import openerp import site import os

site.addsitedir('/home/eneldo/.virtualenvs/openerp/lib/python2.7')

activate_this = os.path.expanduser("~//home/eneldo/.virtualenvs/openerp/bin/activate_this.py") execfile(activate_this, dict(__file__=activate_this))

Calculate the path based on the location of the WSGI script

project = '/home/eneldo/webapps/openerp/' workspace = os.path.dirname(project) sys.path.append(workspace)

sys.path = ['/home/eneldo/webapps/openerp/htdocs'] + sys.path

#----------------------------------------------------------

Common

#---------------------------------------------------------- openerp.multi_process = True # Nah!

"./htdocs/index.py" 69L, 2244C 31,1 Top

Avatar
Discard

please check the Deploy OpenERP Using mod_proxy and mod_wsgi On Ubuntu Server http://wp.me/p4nK0p-18