Skip to content
Myr

folders.rst

This file

Path

docs/tutorial/folders.rst

31 lines · 1.2 KiB

Last changed by

resolve merge conflictsKenneth Reitzbefore adoption31174fe

History of this file

Take it

The walk stopped after 200 commits: lines older than 221aaa5 point at it.

Merge pull request #1122 from milesrichardson/masterDaniel Neuhäuserbefore adoption221aaa5

lines 1–5why, one step back
1.. _tutorial-folders:
23Step 0: Creating The Folders4============================5

resolve merge conflictsKenneth Reitzbefore adoption31174fe

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 #1122 from milesrichardson/masterDaniel Neuhäuserbefore adoption221aaa5

line 8why, one step back
8

resolve merge conflictsKenneth Reitzbefore adoption31174fe

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 #1122 from milesrichardson/masterDaniel Neuhäuserbefore adoption221aaa5

line 12why, one step back
12 /flaskr

resolve merge conflictsKenneth Reitzbefore adoption31174fe

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

Merge pull request #1122 from milesrichardson/masterDaniel Neuhäuserbefore adoption221aaa5

line 16why, one step back
16

resolve merge conflictsKenneth Reitzbefore adoption31174fe

lines 17–19why, 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 exactly19how to run ``flaskr`` later on in this tutorial.

Merge pull request #1122 from milesrichardson/masterDaniel Neuhäuserbefore adoption221aaa5

line 20why, one step back
20

resolve merge conflictsKenneth Reitzbefore adoption31174fe

lines 21–29why, one step back
21For now go ahead and create the applications directory structure. In the next
22few steps you will be creating the database schema as well as the main module.2324As 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 and26JavaScript files go. Inside the :file:`templates` folder, Flask will look for27`Jinja2`_ templates. You will see examples of this later on.2829For now you should continue with :ref:`tutorial-schema`.

Merge pull request #1122 from milesrichardson/masterDaniel Neuhäuserbefore adoption221aaa5

lines 30–31why, one step back
30
31.. _Jinja2: http://jinja.pocoo.org/