Skip to content
Myr

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 file

Take 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 back
1.. _tutorial-folders:
23Step 0: Creating The Folders4============================5

Merge branch 'master' into masterKenneth Reitzbefore adoptiond911c89

lines 6–7why, one step back
6It is recommended to install your Flask application within a virtualenv. Please
7read the :ref:`installation` section to set up your environment.

Merge pull request #1703 from jeffwidman/masterDavid Lordbefore adoption7df543d

line 8why, one step back
8

Merge branch 'master' into masterKenneth Reitzbefore adoptiond911c89

lines 9–11why, one step back
9Now that you have installed Flask, you will need to create the folders required
10for this tutorial. Your directory structure will look like this::11

Merge pull request #1703 from jeffwidman/masterDavid Lordbefore adoption7df543d

line 12why, one step back
12 /flaskr

Merge branch '0.11-maintenance'David Lordbefore adoption633b13e

lines 13–15why, one step back
13 /flaskr
14 /static15 /templates

Merge pull request #1703 from jeffwidman/masterDavid Lordbefore adoption7df543d

line 16why, one step back
16

Merge branch '0.11-maintenance'David Lordbefore adoption633b13e

lines 17–18why, one step back
17The application will be installed and run as Python package. This is the
18recommended way to install and run Flask applications. You will see exactly

Merge branch 'master' into masterKenneth Reitzbefore adoptiond911c89

lines 19–22why, one step back
19how 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 back
23

Merge branch '0.11-maintenance'David Lordbefore adoption633b13e

lines 24–25why, one step back
24As a quick side note, the files inside of the :file:`static` folder are
25available to users of the application via HTTP. This is the place where CSS and

Spelling (#1998)Josh Sorefbefore adoption6e6c3a4

line 26why, one step back
26JavaScript files go. Inside the :file:`templates` folder, Flask will look for

Merge branch '0.11-maintenance'David Lordbefore adoption633b13e

lines 27–29why, one step back
27`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 back
30
31.. _Jinja2: http://jinja.pocoo.org/