X-Git-Url: http://git.inspyration.org/?a=blobdiff_plain;f=openerp-wsgi.py;h=4a3f34d57641e6eed3a619c6b23b2fe86034fdb6;hb=9ef27d334d732e609f77f1146778eaba1c801ee7;hp=48ffeaf33730a109724e7762cccbecfb3d3f5018;hpb=6c60619a2bfeec6f3241e47ff4dbe1dd4844132c;p=odoo%2Fodoo.git diff --git a/openerp-wsgi.py b/openerp-wsgi.py index 48ffeaf..4a3f34d 100644 --- a/openerp-wsgi.py +++ b/openerp-wsgi.py @@ -1,4 +1,3 @@ -#!/usr/bin/python # WSGI Handler sample configuration file. # # Change the appropriate settings below, in order to provide the parameters @@ -11,7 +10,7 @@ # # For gunicorn additional globals need to be defined in the Gunicorn section. # Then the following command should run: -# $ gunicorn openerp:application -c openerp-wsgi.py +# $ gunicorn openerp:service.wsgi_server.application -c openerp-wsgi.py import openerp @@ -41,6 +40,8 @@ conf['addons_path'] = '../../addons/trunk,../../web/trunk/addons' #---------------------------------------------------------- application = openerp.service.wsgi_server.application +openerp.service.server.load_server_wide_modules() + #---------------------------------------------------------- # Gunicorn #----------------------------------------------------------