folders.rst
This file
Path
docs/tutorial/folders.rst
31 lines · 1.2 KiB
Last changed by
Merge branch 'master' into masterKenneth Reitzbefore adoptiond911c89
History of this fileTake it
The walk stopped after 200 commits: lines older than 7df543d point at it.
Merge pull request #1703 from jeffwidman/masterDavid Lordbefore adoption7df543d
lines 1–5why, one step back1.. _tutorial-folders:23Step 0: Creating The Folders4============================5Merge branch 'master' into masterKenneth Reitzbefore adoptiond911c89
lines 6–7why, one step back6It is recommended to install your Flask application within a virtualenv. Please7read the :ref:`installation` section to set up your environment.Merge pull request #1703 from jeffwidman/masterDavid Lordbefore adoption7df543d
line 8why, one step back8Merge branch 'master' into masterKenneth Reitzbefore adoptiond911c89
lines 9–11why, one step back9Now that you have installed Flask, you will need to create the folders required10for this tutorial. Your directory structure will look like this::11Merge pull request #1703 from jeffwidman/masterDavid Lordbefore adoption7df543d
line 12why, one step back12 /flaskrMerge branch '0.11-maintenance'David Lordbefore adoption633b13e
lines 13–15why, one step back13 /flaskr14 /static15 /templatesMerge pull request #1703 from jeffwidman/masterDavid Lordbefore adoption7df543d
line 16why, one step back16Merge branch '0.11-maintenance'David Lordbefore adoption633b13e
lines 17–18why, one step back17The application will be installed and run as Python package. This is the18recommended way to install and run Flask applications. You will see exactlyMerge branch 'master' into masterKenneth Reitzbefore adoptiond911c89
lines 19–22why, one step back19how to run ``flaskr`` later on in this tutorial.2021For now go ahead and create the applications directory structure. In the next22few steps you will be creating the database schema as well as the main module.Merge pull request #1703 from jeffwidman/masterDavid Lordbefore adoption7df543d
line 23why, one step back23Merge branch '0.11-maintenance'David Lordbefore adoption633b13e
lines 24–25why, one step back24As a quick side note, the files inside of the :file:`static` folder are25available to users of the application via HTTP. This is the place where CSS andSpelling (#1998)Josh Sorefbefore adoption6e6c3a4
line 26why, one step back26JavaScript files go. Inside the :file:`templates` folder, Flask will look forMerge branch '0.11-maintenance'David Lordbefore adoption633b13e
lines 27–29why, one step back27`Jinja2`_ templates. You will see examples of this later on.2829For now you should continue with :ref:`tutorial-schema`.Merge pull request #1703 from jeffwidman/masterDavid Lordbefore adoption7df543d
lines 30–31why, one step back3031.. _Jinja2: http://jinja.pocoo.org/