import os from manage import _set_source_root_parent from django.core.wsgi import get_wsgi_application from whitenoise.django import DjangoWhiteNoise os.environ.setdefault("DJANGO_SETTINGS_MODULE", "captain.settings") _set_source_root_parent('submodules') application = get_wsgi_application() application = DjangoWhiteNoise(application)
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()