Fix various small spelling errors.

This commit is contained in:
A Brooks 2019-05-14 15:08:00 -05:00 committed by David Lord
parent 7f782ba84e
commit 4e272fc042
No known key found for this signature in database
GPG key ID: 7A1C87E3F5BC42A8
9 changed files with 14 additions and 14 deletions

View file

@ -244,7 +244,7 @@ was dispatched to any other admin blueprint endpoint.
Error Handlers Error Handlers
-------------- --------------
Blueprints support the errorhandler decorator just like the :class:`Flask` Blueprints support the ``errorhandler`` decorator just like the :class:`Flask`
application object, so it is easy to make Blueprint-specific custom error application object, so it is easy to make Blueprint-specific custom error
pages. pages.

View file

@ -527,7 +527,7 @@ the config file by adding ``from yourapplication.default_settings
import *`` to the top of the file and then overriding the changes by hand. import *`` to the top of the file and then overriding the changes by hand.
You could also inspect an environment variable like You could also inspect an environment variable like
``YOURAPPLICATION_MODE`` and set that to `production`, `development` etc ``YOURAPPLICATION_MODE`` and set that to `production`, `development` etc
and import different hardcoded files based on that. and import different hard-coded files based on that.
An interesting pattern is also to use classes and inheritance for An interesting pattern is also to use classes and inheritance for
configuration:: configuration::

View file

@ -6,7 +6,7 @@ Extensions
Extensions are extra packages that add functionality to a Flask Extensions are extra packages that add functionality to a Flask
application. For example, an extension might add support for sending application. For example, an extension might add support for sending
email or connecting to a database. Some extensions add entire new email or connecting to a database. Some extensions add entire new
frameworks to help build certain types of applications, like a ReST API. frameworks to help build certain types of applications, like a REST API.
Finding Extensions Finding Extensions

View file

@ -43,8 +43,8 @@ The Golden Rule
So the rule of thumb: if you are not dealing with binary data, work with So the rule of thumb: if you are not dealing with binary data, work with
Unicode. What does working with Unicode in Python 2.x mean? Unicode. What does working with Unicode in Python 2.x mean?
- as long as you are using ASCII charpoints only (basically numbers, - as long as you are using ASCII code points only (basically numbers,
some special characters of latin letters without umlauts or anything some special characters of Latin letters without umlauts or anything
fancy) you can use regular string literals (``'Hello World'``). fancy) you can use regular string literals (``'Hello World'``).
- if you need anything else than ASCII in a string you have to mark - if you need anything else than ASCII in a string you have to mark
this string as Unicode string by prefixing it with a lowercase `u`. this string as Unicode string by prefixing it with a lowercase `u`.