Fix various small spelling errors.
This commit is contained in:
parent
7f782ba84e
commit
4e272fc042
9 changed files with 14 additions and 14 deletions
|
|
@ -244,7 +244,7 @@ was dispatched to any other admin blueprint endpoint.
|
|||
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
|
||||
pages.
|
||||
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
You could also inspect an environment variable like
|
||||
``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
|
||||
configuration::
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ Extensions
|
|||
Extensions are extra packages that add functionality to a Flask
|
||||
application. For example, an extension might add support for sending
|
||||
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
|
||||
|
|
|
|||
|
|
@ -43,8 +43,8 @@ The Golden Rule
|
|||
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?
|
||||
|
||||
- as long as you are using ASCII charpoints only (basically numbers,
|
||||
some special characters of latin letters without umlauts or anything
|
||||
- as long as you are using ASCII code points only (basically numbers,
|
||||
some special characters of Latin letters without umlauts or anything
|
||||
fancy) you can use regular string literals (``'Hello World'``).
|
||||
- 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`.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue