folders.rst
This file
Path
docs/tutorial/folders.rst
27 lines · 994 bytes
Last changed by
Address #1902: Converts example/flaskr to have a setup.py (#1945)Kyle Lawlorbefore adoption17d4cb3
History of this fileTake it
The walk stopped after 200 commits: lines older than 54def62 point at it.
Merge pull request #1234 from Winnetou/patch-2Markus Unterwaditzerbefore adoption54def62
lines 1–5why, one step back1.. _tutorial-folders:23Step 0: Creating The Folders4============================5Address #1902: Converts example/flaskr to have a setup.py (#1945)Kyle Lawlorbefore adoption17d4cb3
line 6why, one step back6Before getting started, you will need to create the folders needed for thisMerge pull request #1234 from Winnetou/patch-2Markus Unterwaditzerbefore adoption54def62
lines 7–9why, one step back7application::89 /flaskrAddress #1902: Converts example/flaskr to have a setup.py (#1945)Kyle Lawlorbefore adoption17d4cb3
lines 10–12why, one step back10 /flaskr11 /static12 /templatesMerge pull request #1234 from Winnetou/patch-2Markus Unterwaditzerbefore adoption54def62
line 13why, one step back13Address #1902: Converts example/flaskr to have a setup.py (#1945)Kyle Lawlorbefore adoption17d4cb3
lines 14–18why, one step back14The application will be installed and run as Python package. This is the15recommended way to install and run Flask applications. You will see exactly16how to run ``flaskr`` later on in this tutorial. For now go ahead and create17the applications directory structure. In the next few steps you will be18creating the database schema as well as the main module.Merge pull request #1234 from Winnetou/patch-2Markus Unterwaditzerbefore adoption54def62
line 19why, one step back19Address #1902: Converts example/flaskr to have a setup.py (#1945)Kyle Lawlorbefore adoption17d4cb3
lines 20–25why, one step back20As a quick side note, the files inside of the :file:`static` folder are21available to users of the application via HTTP. This is the place where CSS and22Javascript files go. Inside the :file:`templates` folder, Flask will look for23`Jinja2`_ templates. You will see examples of this later on.2425For now you should continue with :ref:`tutorial-schema`.Merge pull request #1234 from Winnetou/patch-2Markus Unterwaditzerbefore adoption54def62
lines 26–27why, one step back2627.. _Jinja2: http://jinja.pocoo.org/