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 @ 226:f813da4ed085

[sync] imported e556e64..feb54d4 from upstream commit feb54d480cb1ac2186e3d79b238bb525b9237b41 Author: Daniel Neugebauer <dneuge@energiequant.de> Date: Sun Apr 5 21:43:29 2020 +0000 Add README.md
author Migration Sync <gentoo-overlay@megacoffee.net>
date Sun, 05 Apr 2020 21:45:01 +0000
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')