view main.py @ 92:2200ae1e7bdb

Rename html_error_code to http_error_code The new name is obviously what the parameter actually specifies. Not least because there is no such thing as an HTML error code.
author Bernhard Herzog <bh@intevation.de>
date Fri, 28 Apr 2017 19:03:36 +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)
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)