예제 #1
0
import os
from manage import _set_source_root_parent, _set_source_root

os.environ.setdefault("DJANGO_SETTINGS_MODULE", "settings")

_set_source_root_parent('submodules')
_set_source_root(os.path.join('corehq', 'ex-submodules'))
_set_source_root(os.path.join('custom', '_legacy'))

# patch gevent
from gevent.monkey import patch_all
from psycogreen.gevent import patch_psycopg

patch_all(subprocess=True)
patch_psycopg()

from django.core.wsgi import get_wsgi_application
application = get_wsgi_application()
예제 #2
0
from __future__ import absolute_import
from __future__ import unicode_literals
import os
from manage import _set_source_root_parent, _set_source_root

os.environ.setdefault("DJANGO_SETTINGS_MODULE", "settings")

_set_source_root_parent('submodules')
_set_source_root(os.path.join('corehq', 'ex-submodules'))
_set_source_root(os.path.join('custom', '_legacy'))

# patch gevent
from gevent.monkey import patch_all
from psycogreen.gevent import patch_psycopg

patch_all(subprocess=True)
patch_psycopg()

from django.core.wsgi import get_wsgi_application
application = get_wsgi_application()