#๐Ÿ”’ app = Flask(__name__)

8 messages ยท Page 1 of 1 (latest)

wispy mortar
#

Hello, I'm a beginner learning how to code in python. Today I thought I'd take on learning some of a framework, and I chose Flask. I have never seen the name attribute, not seeing as though it's quite common I believe I should learn what it does. Could use some help

hollow shardBOT
#

@wispy mortar

Python help channel opened

Remember to:

  • Ask your Python question, not if you can ask or if there's an expert who can help.
  • Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
  • Explain what you expect to happen and what actually happens.

:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.

ivory dune
#

flask lets u host a website in py and run the backend code in py

#

what about it do u need help

wispy mortar
#

I don't understand what the __name__ attribute assigned to the Flask class does

hollow shardBOT
#
Python help channel closed

This help channel has been closed and it's no longer possible to send messages here. If your question wasn't answered, feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.

#

๐Ÿ”’ app = Flask(name)