javascript link to go back 1

javascript link to go back

[Go Back]

Here is what the above code is Doing:
1. We’re importing the Flask class from the flask module.
2. We’re creating a new instance of the Flask class. The first argument is the name of the application’s module or package. If you are using a single module (as in this example), you should use __name__ because depending on if it’s started as application or imported as module the name will be different (‘__main__’ versus the actual import name). This is needed so that Flask knows where to look for templates, static files, and so on. For more information have a look at the Flask documentation.
3. We’re defining our first route. This is the part that will be executed when we open the URL http://localhost:5000/ in our browser.
4. We’re defining a function that will be executed when the route is called.
5. We’re returning the string ‘Hello World!’ to the user.
6. We’re running the application on the local development server.

Similar Posts