summaryrefslogtreecommitdiff
path: root/watchnews/wsgi.py
blob: bd157cb3126bceb6a2334728ba55e6bab1aaef40 (plain)
1
2
3
4
5
6
7
8
9
10
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()