1 # WSGI Handler sample configuration file.
3 # Change the appropriate settings below, in order to provide the parameters
4 # that would normally be passed in the command-line.
5 # (at least conf['addons_path'])
7 # For generic wsgi handlers a global application is defined.
8 # For uwsgi this should work:
9 # $ uwsgi_python --http :9090 --pythonpath . --wsgi-file openerp-wsgi.py
11 # For gunicorn additional globals need to be defined in the Gunicorn section.
12 # Then the following command should run:
13 # $ gunicorn openerp:service.wsgi_server.application -c openerp-wsgi.py
17 from os.path import curdir, realpath
20 #----------------------------------------------------------
22 #----------------------------------------------------------
23 openerp.multi_process = True # Nah!
25 # Equivalent of --load command-line option
26 openerp.conf.server_wide_modules = ['web']
27 conf = openerp.tools.config
29 # Path to the OpenERP Addons repository (comma-separated for
32 base_path = realpath(curdir)
34 addons_path_base = sep.join((base_path, "addons"))
36 addons_path_include = ",".join(sep.join((base_path, "include", path)) for path in (
39 "account-financial-reporting",
40 "account-financial-tools",
43 "bank-statement-reconcile",
47 conf["addons_path"] = ",".join((addons_path_base, addons_path_include))
49 # Optional database config if not using local socket
50 #conf['db_name'] = 'mycompany'
51 #conf['db_host'] = 'localhost'
52 #conf['db_user'] = 'foo'
53 #conf['db_port'] = 5432
54 #conf['db_password'] = 'secret'
56 #----------------------------------------------------------
57 # Generic WSGI handlers application
58 #----------------------------------------------------------
59 application = openerp.service.wsgi_server.application
61 openerp.service.server.load_server_wide_modules()
63 #----------------------------------------------------------
65 #----------------------------------------------------------
66 # Standard OpenERP XML-RPC port is 8069
67 #bind = '127.0.0.1:8069'
68 #pidfile = '.gunicorn.pid'
73 # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: