open github code editor online 1

open github code editor online

#To open Github code online without an editor, insert '1s' infront of the github in the url.
https://github.com/pallets/flask

#Insert 1s after "github" and enter.
https://github1s.com/pallets/flask

Here is what the above code is Doing:
1. We import the Flask class. An instance of this class will be our WSGI application.
2. We create an instance of this 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 use the route() decorator to tell Flask what URL should trigger our function.
4. The function is given a name which is also used to generate URLs for that particular function, and returns the message we want to display in the user’s browser.

Similar Posts