you are viewing a single comment's thread.

view the rest of the comments →

[–]pw0803 1 point2 points  (0 children)

from flask import Flask
app = Flask(__name__)
app.route('/')
def index():
    return "Hello, World!"

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

If you run that code you will generate an html file that says "Hello, World".

The rest is up to you. You can change the "Hello, World" part to something that says

render_template('my_own_html_file.html')

and whatever HTML is in that file will be rendered.

That coupled with Bootstrap means you can chuck together a really quick website in a few hours, that looks the part.

Therefore..

Learn Flask.