diff options
author | Yves Fischer <yvesf-git@xapek.org> | 2015-11-22 00:25:56 +0100 |
---|---|---|
committer | Yves Fischer <yvesf-git@xapek.org> | 2015-11-22 00:25:56 +0100 |
commit | 6080b38fb2b6b3c1017bdd34bb7552bc7e26a4a0 (patch) | |
tree | 07b69c3c6a665ef290591e184ca0d2ba3b73fe01 /watchnews/wsgi.py | |
parent | 49ac3c20cb77b90493ce79b4e31cf0f58cba0116 (diff) | |
download | watchnews-6080b38fb2b6b3c1017bdd34bb7552bc7e26a4a0.tar.gz watchnews-6080b38fb2b6b3c1017bdd34bb7552bc7e26a4a0.zip |
project restructure
make it a proper python package
Diffstat (limited to 'watchnews/wsgi.py')
-rw-r--r-- | watchnews/wsgi.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/watchnews/wsgi.py b/watchnews/wsgi.py new file mode 100644 index 0000000..bd157cb --- /dev/null +++ b/watchnews/wsgi.py @@ -0,0 +1,11 @@ +from watchnews import web, data +import os + + +dbpath = os.environ.get("WATCHNEWS_DBPATH") +if not dbpath: + raise Exception("WATCHNEWS_DBPATH must be set") + +data.init_sqlite(dbpath) +application = web.get_app() + |