#!/usr/bin/env python3
# -*- coding: utf-8 -*-

__author__ = 'ipetrash'


# SOURCE: https://github.com/twbs/bootstrap
# SOURCE: https://github.com/gitbrent/bootstrap4-toggle
# SOURCE: https://gitbrent.github.io/bootstrap4-toggle/


from flask import Flask, render_template
app = Flask(__name__)

import logging
logging.basicConfig(level=logging.DEBUG)


@app.route("/")
def index():
    return render_template('index.html')


if __name__ == '__main__':
    app.debug = True

    # Localhost
    # port=0 -- random free port
    # app.run(port=0)
    app.run(
        port=5000,

        # :param threaded: should the process handle each request in a separate
        #                  thread?
        # :param processes: if greater than 1 then handle each request in a new process
        #                   up to this maximum number of concurrent processes.
        threaded=True,
    )

    # # Public IP
    # app.run(host='0.0.0.0')

[((13, 6, 13, 21), 'flask.Flask', 'Flask', ({(13, 12, 13, 20): '__name__'}, {}), '(__name__)', False, 'from flask import Flask, render_template\n'), ((16, 0, 16, 40), 'logging.basicConfig', 'logging.basicConfig', (), '', False, 'import logging\n'), ((21, 11, 21, 40), 'flask.render_template', 'render_template', ({(21, 27, 21, 39): '"""index.html"""'}, {}), "('index.html')", False, 'from flask import Flask, render_template\n')]