Exemple #1
0
def hello_world():
    author1 = "Svitlana Zaster"
    name1 = "Sveta"
    return render_template('index.html', author=author1, name=name1)


@app.route('/index')
def index():
    author1 = "Svitlana Zaster"
    name1 = "Sveta"
    return render_template('index.html', author=author1, name=name1)


@app.route('/100Days')
def p100Days():
    return render_template('100Days.html')


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


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


if __name__ == "__main__":
    app.run()
from program import app

if __name__ == '__main__':
    app.run(load_dotenv=False)
from program import app

if __name__ == '__main__':
    app.run(debug=True, host='0.0.0.0')
Exemple #4
0
from program import app

if __name__ == '__main__':
    app.run(debug=True)