@@ -9,16 +9,16 @@ What does "micro" mean?
9
9
-----------------------
10
10
11
11
To me, the "micro" in microframework refers not only to the simplicity and
12
- small size of the framework, but also the fact that it does not make much
12
+ small size of the framework, but also the fact that it does not make many
13
13
decisions for you. While Flask does pick a templating engine for you, we
14
14
won't make such decisions for your datastore or other parts.
15
15
16
- For us however the term “micro” does not mean that the whole implementation
16
+ However, to us the term “micro” does not mean that the whole implementation
17
17
has to fit into a single Python file.
18
18
19
19
One of the design decisions with Flask was that simple tasks should be
20
- simple and not take up a lot of code and yet not limit yourself. Because
21
- of that we took a few design choices that some people might find
20
+ simple; they should not take a lot of code and yet they should not limit you.
21
+ Because of that we made a few design choices that some people might find
22
22
surprising or unorthodox. For example, Flask uses thread-local objects
23
23
internally so that you don't have to pass objects around from function to
24
24
function within a request in order to stay threadsafe. While this is a
@@ -30,17 +30,17 @@ and provide you with a lot of tools to make it as pleasant as possible to
30
30
work with them.
31
31
32
32
Flask is also based on convention over configuration, which means that
33
- many things are preconfigured. For example, by convention, templates and
34
- static files are in subdirectories within the Python source tree of the
35
- application. While this can be changed you usually don't have to.
33
+ many things are preconfigured. For example, by convention templates and
34
+ static files are stored in subdirectories within the application's Python source tree.
35
+ While this can be changed you usually don't have to.
36
36
37
- The main reason however why Flask is called a "microframework" is the idea
37
+ The main reason Flask is called a "microframework" is the idea
38
38
to keep the core simple but extensible. There is no database abstraction
39
39
layer, no form validation or anything else where different libraries
40
- already exist that can handle that. However Flask knows the concept of
41
- extensions that can add this functionality into your application as if it
40
+ already exist that can handle that. However Flask supports
41
+ extensions to add such functionality to your application as if it
42
42
was implemented in Flask itself. There are currently extensions for
43
- object relational mappers, form validation, upload handling, various open
43
+ object- relational mappers, form validation, upload handling, various open
44
44
authentication technologies and more.
45
45
46
46
Since Flask is based on a very solid foundation there is not a lot of code
@@ -71,7 +71,7 @@ cause security problems.
71
71
The documentation will warn you about aspects of web development that
72
72
require attention to security. Some of these security concerns
73
73
are far more complex than one might think, and we all sometimes underestimate
74
- the likelihood that a vulnerability will be exploited, until a clever
74
+ the likelihood that a vulnerability will be exploited - until a clever
75
75
attacker figures out a way to exploit our applications. And don't think
76
76
that your application is not important enough to attract an attacker.
77
77
Depending on the kind of attack, chances are that automated bots are
@@ -88,8 +88,8 @@ support the new iteration of the Python programming language. While the
88
88
situation is greatly improving there are still some issues that make it
89
89
hard for us to switch over to Python 3 just now. These problems are
90
90
partially caused by changes in the language that went unreviewed for too
91
- long, partially also because we have not quite worked out how the lower
92
- level API should change for the unicode differences in Python3 .
91
+ long, partially also because we have not quite worked out how the lower-
92
+ level API should change to account for the Unicode differences in Python 3 .
93
93
94
94
Werkzeug and Flask will be ported to Python 3 as soon as a solution for
95
95
the changes is found, and we will provide helpful tips how to upgrade
0 commit comments