Skip to content

consider ditching some best practices #40

@natebrennand

Description

@natebrennand

possibly skip some best practices:

if __name__ == "__main__":
app = Flask(__name__)

I think this is a good idea because the explanations for those are not necessary for learning flask or to make it run.

This runs just fine:

from flask import Flask

app = Flask('my_app')

@app.route("/")
def hello():
    return "Hello World!"

app.run(host="0.0.0.0")

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions