Mercurial > odfcast
view main.py @ 96:f6d87a17ed84 1.5.1
Require a newer version of py3o.template.
Version 0.9.11 is newest one available at the moment. The issue we were
having with some ODT templates might have been fixed in an earlier
version (e.g. 0.9.9) but I've only tested it with 0.9.11.
author | Bernhard Herzog <bh@intevation.de> |
---|---|
date | Fri, 25 Aug 2017 18:36:44 +0200 |
parents | dcf870775c26 |
children |
line wrap: on
line source
# -*- coding: utf-8 -*- if __name__ == "__main__": from odfcast import app server_name = app.config['SERVER_NAME'] if server_name and ':' in server_name: host, port = server_name.rsplit(':', 1) port = int(port) else: port = 5000 host = "127.0.0.1" app.run(host=host, port=port)