ihatemoney/ihatemoney.wsgi
0livd cdf903383a Add the possibilty to run ihatemoney via Apache mod_wsgi (#191)
Add the possibilty to run ihatemoney via Apache mod_wsgi

ihatemoney.wsgi is the entry point for mod_wsgi.
A virtualenv can be activated if its path is specified as
an env var in the apache virtual host file
2017-04-10 18:46:39 +02:00

9 lines
236 B
Python

import sys
import os
__HERE__ = os.path.dirname(os.path.abspath(__file__))
# Add the budget directory to the path so we can then import from run
sys.path.insert(0, os.path.join(__HERE__, 'budget'))
from run import app as application