We have moved to Git. This repository is only provided for compatibility with old installations. Learn how to migrate your installation here.

view dev-vcs/kallithea/files/production.wsgi @ 220:5fc6acd937e1

dev-vcs/kallithea: version bump to 0.3.6 (security update), masking <0.3.6
author Daniel Neugebauer <dneuge@energiequant.de>
date Sat, 29 Dec 2018 16:31:18 +0100
parents 2ce94546a682
children
line wrap: on
line source

import os
os.environ["HGENCODING"] = "UTF-8"
os.environ['PYTHON_EGG_CACHE'] = '###DATADIR###/.egg-cache'

# sometimes it's needed to set the curent dir
os.chdir('###DATADIR###/')

import site
site.addsitedir("###BASEDIR###/lib/python2.7/site-packages")

from paste.deploy import loadapp
from paste.script.util.logging_config import fileConfig

fileConfig('###CONFDIR###/production.ini')
application = loadapp('config:###CONFDIR###/production.ini')