Skip to content

Commit 93a8ca0

Browse files
rduplainmitsuhiko
authored andcommitted
Fixed some minor typos throughout docs.
1 parent e409bc7 commit 93a8ca0

File tree

5 files changed

+17
-17
lines changed

5 files changed

+17
-17
lines changed

docs/becomingbig.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,15 @@ In that case, it makes a lot of sense to use dotted names for the URL
2525
endpoints.
2626

2727
Here are some suggestions for how Flask can be modified to better
28-
accomodate large-scale applications:
28+
accommodate large-scale applications:
2929

3030
- implement dotted names for URL endpoints
3131
- get rid of the decorator function registering which causes a lot
3232
of troubles for applications that have circular dependencies. It
3333
also requires that the whole application is imported when the system
3434
initializes or certain URLs will not be available right away. A
3535
better solution would be to have one module with all URLs in there and
36-
specifing the target functions explicitly or by name and importing
36+
specifying the target functions explicitly or by name and importing
3737
them when needed.
3838
- switch to explicit request object passing. This requires more typing
3939
(because you now have something to pass around) but it makes it a

docs/design.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ possible without hacks if the object were created ahead of time for you
5151
based on a class that is not exposed to you.
5252

5353
But there is another very important reason why Flask depends on an
54-
explicit instanciation of that class: the package name. Whenever you
54+
explicit instantiation of that class: the package name. Whenever you
5555
create a Flask instance you usually pass it `__name__` as package name.
5656
Flask depends on that information to properly load resources relative
5757
to your module. With Python's outstanding support for reflection it can
@@ -125,7 +125,7 @@ advantage.
125125
Flask is a framework that takes advantage of the work already done by
126126
Werkzeug to properly interface WSGI (which can be a complex task at
127127
times). Thanks to recent developments in the Python package
128-
infrastructure, packages with depencencies are no longer an issue and
128+
infrastructure, packages with dependencies are no longer an issue and
129129
there are very few reasons against having libraries that depend on others.
130130

131131

@@ -140,7 +140,7 @@ isn't that a bad idea?
140140
Yes it is usually not such a bright idea to use thread locals. They cause
141141
troubles for servers that are not based on the concept of threads and make
142142
large applications harder to maintain. However Flask is just not designed
143-
for large applications or asyncronous servers. Flask wants to make it
143+
for large applications or asynchronous servers. Flask wants to make it
144144
quick and easy to write a traditional web application.
145145

146146
Also see the :ref:`becomingbig` section of the documentation for some

docs/foreword.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,15 +68,15 @@ up in situations where we think "well, this is just far fetched, how could
6868
that possibly be exploited" and then an intelligent guy comes along and
6969
figures a way out to exploit that application. And don't think, your
7070
application is not important enough for hackers to take notice. Depending
71-
ont he kind of attack, chances are there are automated botnets out there
72-
trying to figure out how to fill your database with viagra adverisments.
71+
on the kind of attack, chances are there are automated botnets out there
72+
trying to figure out how to fill your database with viagra advertisements.
7373

7474
So always keep that in mind when doing web development.
7575

7676
Target Audience
7777
---------------
7878

79-
Is Flask for you? Is your application small-ish (less than 4000 lines of
79+
Is Flask for you? If your application small-ish (less than 4000 lines of
8080
Python code) and does not depend on too complex database structures, Flask
8181
is the Framework for you. It was designed from the ground up to be easy
8282
to use, based on established principles, good intentions and on top of two

docs/installation.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ Get the git checkout in a new virtualenv and run in develop mode::
122122
...
123123
Finished processing dependencies for Flask
124124

125-
This will pull in the depdenencies and activate the git head as current
125+
This will pull in the dependencies and activate the git head as current
126126
version. Then you just have to ``git pull origin`` to get the latest
127127
version.
128128

docs/quickstart.rst

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ you enable the debug support the server will reload itself on code changes
8383
and also provide you with a helpful debugger if things go wrong.
8484

8585
There are two ways to enable debugging. Either set that flag on the
86-
applciation object::
86+
application object::
8787

8888
app.debug = True
8989
app.run()
@@ -139,7 +139,7 @@ likely he will like the page and come back next time.
139139

140140
To add variable parts to a URL you can mark these special sections as
141141
``<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
143143
rule with ``<converter:variable_name>``. Here some nice examples::
144144

145145
@app.route('/user/<username>')
@@ -186,8 +186,8 @@ parameter. Here some examples:
186186
>>> with app.test_request_context():
187187
... print url_for('index')
188188
... print url_for('login')
189-
... print url_for('profile', username='John Doe')
190189
... print url_for('login', next='/')
190+
... print url_for('profile', username='John Doe')
191191
...
192192
/
193193
/login
@@ -319,7 +319,7 @@ Here's a simple example of how to render a template::
319319

320320
Flask will look for templates in the `templates` folder. So if your
321321
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:
323323

324324
**Case 1**: a module::
325325
@@ -484,7 +484,7 @@ We recommend accessing URL parameters with `get` or by catching the
484484
`KeyError` because users might change the URL and presenting them a 400
485485
bad request page in that case is a bit user unfriendly.
486486

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
488488
:class:`~flask.request` documentation.
489489

490490

@@ -493,7 +493,7 @@ File Uploads
493493

494494
Obviously you can handle uploaded files with Flask just as easy. Just
495495
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
497497
files at all.
498498

499499
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
576576

577577
Note the ``404`` after the :func:`~flask.render_template` call. This
578578
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.
580580

581581
.. _sessions:
582582

@@ -586,7 +586,7 @@ Sessions
586586
Besides the request object there is also a second object called
587587
:class:`~flask.session` that allows you to store information specific to a
588588
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
590590
the user could look at the contents of your cookie but not modify it,
591591
unless he knows the secret key used for signing.
592592

0 commit comments

Comments
 (0)