forked from orbit-oss/flask
Update docs on larger applications wrt tutorial
The wording of the docs makes it sound like the tutorials use the simple structure for a flask application, which they no longer do. This commit re-words the docs to make it clearer.
This commit is contained in:
parent
1e616696c0
commit
b8e461e3d1
1 changed files with 5 additions and 5 deletions
|
|
@ -3,9 +3,7 @@
|
||||||
Larger Applications
|
Larger Applications
|
||||||
===================
|
===================
|
||||||
|
|
||||||
For larger applications it's a good idea to use a package instead of a
|
Imagine a simple flask application structure that looks like this::
|
||||||
module. That is quite simple. Imagine a small application looks like
|
|
||||||
this::
|
|
||||||
|
|
||||||
/yourapplication
|
/yourapplication
|
||||||
yourapplication.py
|
yourapplication.py
|
||||||
|
|
@ -17,8 +15,10 @@ this::
|
||||||
login.html
|
login.html
|
||||||
...
|
...
|
||||||
|
|
||||||
The :ref:`tutorial <tutorial>` is structured this way, see the
|
While this is fine for small applications, for larger applications
|
||||||
:gh:`example code <examples/tutorial>`.
|
it's a good idea to use a package instead of a module.
|
||||||
|
The :ref:`tutorial <tutorial>` is structured to use the package pattern,
|
||||||
|
see the :gh:`example code <examples/tutorial>`.
|
||||||
|
|
||||||
Simple Packages
|
Simple Packages
|
||||||
---------------
|
---------------
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue