Sfoglia il codice sorgente

wsgi for python3

feature/python-3-migration
tr4ck3ur des JM2L 4 anni fa
parent
commit
a8399d0646
1 ha cambiato i file con 6 aggiunte e 9 eliminazioni
  1. +6
    -9
      wsgi.py

+ 6
- 9
wsgi.py Vedi 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')

Caricamento…
Annulla
Salva