Browse Source

Put the link to Flask class docs at the end.

pull/683/head
Alex Couper 12 years ago
parent
commit
8ee01ad5ed
  1. 6
      docs/quickstart.rst

6
docs/quickstart.rst

@ -43,9 +43,9 @@ So what did that code do?
the application's module or package. If you are using a single module (as 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 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 started as application or imported as module the name will be different
(``'__main__'`` versus the actual import name). For more information, have (``'__main__'`` versus the actual import name). This is needed so that
a look at the :class:`~flask.Flask` documentation. This is needed so that Flask knows where to look for templates, static files, and so on. For more
Flask knows where to look for templates, static files, and so on. information, have a look at the :class:`~flask.Flask` documentation.
3. We then use the :meth:`~flask.Flask.route` decorator to tell Flask what URL 3. We then use the :meth:`~flask.Flask.route` decorator to tell Flask what URL
should trigger our function. should trigger our function.
4. The function is given a name which is also used to generate URLs for that 4. The function is given a name which is also used to generate URLs for that

Loading…
Cancel
Save