X-Git-Url: http://git.inspyration.org/?a=blobdiff_plain;f=openerp-wsgi.py;fp=openerp-wsgi.py;h=1ad46a13528c1c5d4a6a248eb6f85b58bbe362c2;hb=d9610efd979c974e540353716f8d0b9ecdb9d952;hp=169a837d99be4f17f6bb7a0fde2389316631e79e;hpb=b14653595da8e25c0bdaab6efec46c1537f803c9;p=odoo%2Fodoo.git diff --git a/openerp-wsgi.py b/openerp-wsgi.py index 169a837..1ad46a1 100644 --- a/openerp-wsgi.py +++ b/openerp-wsgi.py @@ -1,23 +1,27 @@ -# WSGI Handler sample configuration file. -# -# Change the appropriate settings below, in order to provide the parameters -# that would normally be passed in the command-line. -# (at least conf['addons_path']) -# -# For generic wsgi handlers a global application is defined. -# For uwsgi this should work: -# $ uwsgi_python --http :9090 --pythonpath . --wsgi-file openerp-wsgi.py -# -# For gunicorn additional globals need to be defined in the Gunicorn section. -# Then the following command should run: -# $ gunicorn openerp:service.wsgi_server.application -c openerp-wsgi.py +# -*- coding: utf-8 -*- + +""" +WSGI Handler sample configuration file. +======================================= + +Change the appropriate settings below, in order to provide the parameters +that would normally be passed in the command-line. + +* For uwsgi this should work: + + $ uwsgi_python --http :9090 --pythonpath . --wsgi-file openerp-wsgi.py + +For gunicorn additional globals need to be defined in the Gunicorn section. + + $ gunicorn openerp:service.wsgi_server.application -c openerp-wsgi.py +""" import openerp #---------------------------------------------------------- # Common #---------------------------------------------------------- -openerp.multi_process = True # Nah! +openerp.multi_process = True # Equivalent of --load command-line option openerp.conf.server_wide_modules = ['web'] @@ -28,8 +32,12 @@ conf = openerp.tools.config conf['addons_path'] = '/opt/odoo/addons,/opt/odoo/include/custom/8.0' +#conf['admin_passwd'] = 'TrucSuperCompliquéEtVachementSecret' + # Optional database config if not using local socket -#conf['db_name'] = 'mycompany' +#conf['db_name'] = 'TODO' +#conf['dbfilter'] = 'TODO' +#conf['list_db'] = 'TODO' #conf['db_host'] = 'localhost' #conf['db_user'] = 'foo' #conf['db_port'] = 5432