@@ -83,7 +83,7 @@ you enable the debug support the server will reload itself on code changes
83
83
and also provide you with a helpful debugger if things go wrong.
84
84
85
85
There are two ways to enable debugging. Either set that flag on the
86
- applciation object::
86
+ application object::
87
87
88
88
app.debug = True
89
89
app.run()
@@ -139,7 +139,7 @@ likely he will like the page and come back next time.
139
139
140
140
To add variable parts to a URL you can mark these special sections as
141
141
``<variable_name> ``. Such a part is then passed as keyword argument to
142
- your function. Optionally a converter can be specifed by specifying a
142
+ your function. Optionally a converter can be specified by specifying a
143
143
rule with ``<converter:variable_name> ``. Here some nice examples::
144
144
145
145
@app.route('/user/<username>')
@@ -186,8 +186,8 @@ parameter. Here some examples:
186
186
>>> with app.test_request_context():
187
187
... print url_for(' index' )
188
188
... print url_for(' login' )
189
- ... print url_for(' profile' , username = ' John Doe' )
190
189
... print url_for(' login' , next = ' /' )
190
+ ... print url_for(' profile' , username = ' John Doe' )
191
191
...
192
192
/
193
193
/login
@@ -319,7 +319,7 @@ Here's a simple example of how to render a template::
319
319
320
320
Flask will look for templates in the `templates ` folder. So if your
321
321
application is a module, that folder is next to that module, if it's a
322
- pacakge it's actually inside your package:
322
+ package it's actually inside your package:
323
323
324
324
**Case 1 **: a module::
325
325
@@ -484,7 +484,7 @@ We recommend accessing URL parameters with `get` or by catching the
484
484
`KeyError ` because users might change the URL and presenting them a 400
485
485
bad request page in that case is a bit user unfriendly.
486
486
487
- For a full list of methods and attribtues on that object, head over to the
487
+ For a full list of methods and attributes on that object, head over to the
488
488
:class: `~flask.request ` documentation.
489
489
490
490
@@ -493,7 +493,7 @@ File Uploads
493
493
494
494
Obviously you can handle uploaded files with Flask just as easy. Just
495
495
make sure not to forget to set the ``enctype="multipart/form-data" ``
496
- attribtue on your HTML form, otherwise the browser will not transmit your
496
+ attribute on your HTML form, otherwise the browser will not transmit your
497
497
files at all.
498
498
499
499
Uploaded files are stored in memory or at a temporary location on the
@@ -576,7 +576,7 @@ you want to customize the error page, you can use the
576
576
577
577
Note the ``404 `` after the :func: `~flask.render_template ` call. This
578
578
tells Flask that the status code of that page should be 404 which means
579
- not found. By default 200 is assumed which translats to: all went well.
579
+ not found. By default 200 is assumed which translates to: all went well.
580
580
581
581
.. _sessions :
582
582
@@ -586,7 +586,7 @@ Sessions
586
586
Besides the request object there is also a second object called
587
587
:class: `~flask.session ` that allows you to store information specific to a
588
588
user from one request to the next. This is implemented on top of cookies
589
- for you and signes the cookies cryptographically. What this means is that
589
+ for you and signs the cookies cryptographically. What this means is that
590
590
the user could look at the contents of your cookie but not modify it,
591
591
unless he knows the secret key used for signing.
592
592
0 commit comments