Browse Source

wsgi for python3

feature/python-3-migration
tr4ck3ur des JM2L 4 weeks ago
parent
commit
a8399d0646
1 changed files with 6 additions and 9 deletions
  1. +6
    -9
      wsgi.py

+ 6
- 9
wsgi.py View File

@@ -1,9 +1,6 @@
APP_CONFIG = "prod.ini"

#Setup logging
import logging.config
logging.config.fileConfig(APP_CONFIG)

#Load the application
from paste.deploy import loadapp
application = loadapp('config:%s' % APP_CONFIG)
import sys
sys.path.append("/srv/.venv_jm2l/lib/python3.7/site-packages")
ini_path = "/srv/jm2l.linux-azur.org/jm2l/production.ini"
from pyramid.paster import get_app, setup_logging
setup_logging(ini_path)
application = get_app(ini_path, 'main')

Loading…
Cancel
Save