@@ -38,15 +38,14 @@ should see your hello world greeting.
38
38
So what did that code do?
39
39
40
40
1. First we imported the :class: `~flask.Flask ` class. An instance of this
41
- class will be our WSGI application. The first argument is the name of
42
- the application's module. If you are using a single module (as in this
43
- example), you should use `__name__ ` because depending on if it's started as
44
- application or imported as module the name will be different (``'__main__' ``
45
- versus the actual import name). For more information, have a look at the
46
- :class: `~flask.Flask ` documentation.
47
- 2. Next we create an instance of this class. We pass it the name of the module
48
- or package. This is needed so that Flask knows where to look for templates,
49
- static files, and so on.
41
+ class will be our WSGI application.
42
+ 2. Next we create an instance of this class. The first argument is the name of
43
+ the application's module or package. If you are using a single module (as
44
+ in this example), you should use `__name__ ` because depending on if it's
45
+ started as application or imported as module the name will be different
46
+ (``'__main__' `` versus the actual import name). This is needed so that
47
+ Flask knows where to look for templates, static files, and so on. For more
48
+ information have a look at the :class: `~flask.Flask ` documentation.
50
49
3. We then use the :meth: `~flask.Flask.route ` decorator to tell Flask what URL
51
50
should trigger our function.
52
51
4. The function is given a name which is also used to generate URLs for that
0 commit comments