Last active
October 17, 2016 12:52
-
-
Save nenodias/d04013421b4e52785e519435ddfbc46a to your computer and use it in GitHub Desktop.
Flask example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # -*- coding:utf-8 -*- | |
| import requests as req | |
| from flask import Flask, request, render_template | |
| app = Flask(__name__) | |
| @app.route('/', methods=['GET', 'POST']) | |
| def index(): | |
| mensagem = u'Olá Mundo' | |
| return render_template('index.html', mensagem=mensagem) | |
| if __name__ == '__main__': | |
| app.run(debug=True, use_reloader=True) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment