Пример #1
0
# -*- coding: UTF-8 -*-
from app.__init__ import app

from flask import render_template


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


if __name__ == '__main__':
    app.run(host='0.0.0.0', port=80, debug=False)
Пример #2
0
from app.__init__ import app
from app.views import *
from app.models import *

if __name__ == '__main__':
    app.run(debug=True, host='0.0.0.0')
Пример #3
0
from app.__init__ import app

if __name__ == "__main__":
    app.run()
Пример #4
0
from app.__init__ import app

if __name__ == '__main__':
    app.run(host="127.0.0.1", port=8000)