Skip to content
Myr

folders.rst

This file

Path

docs/tutorial/folders.rst

27 lines · 994 bytes

Last changed by

Spelling (#1998)Josh Sorefbefore adoption6e6c3a4

History of this file

Take it

The walk stopped after 200 commits: lines older than 70de011 point at it.

Convert readthedocs link for their .org -> .io migration for hosted projects (#1827)Adam Chainzbefore adoption70de011

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

Merge branch '0.11-maintenance'David Lordbefore adoption633b13e

line 6why, one step back
6Before getting started, you will need to create the folders needed for this

Convert readthedocs link for their .org -> .io migration for hosted projects (#1827)Adam Chainzbefore adoption70de011

lines 7–9why, one step back
7application::
89 /flaskr

Merge branch '0.11-maintenance'David Lordbefore adoption633b13e

lines 10–12why, one step back
10 /flaskr
11 /static12 /templates

Convert readthedocs link for their .org -> .io migration for hosted projects (#1827)Adam Chainzbefore adoption70de011

line 13why, one step back
13

Merge branch '0.11-maintenance'David Lordbefore adoption633b13e

lines 14–18why, one step back
14The application will be installed and run as Python package. This is the
15recommended 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.

Convert readthedocs link for their .org -> .io migration for hosted projects (#1827)Adam Chainzbefore adoption70de011

line 19why, one step back
19

Merge branch '0.11-maintenance'David Lordbefore adoption633b13e

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

Spelling (#1998)Josh Sorefbefore adoption6e6c3a4

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

Merge branch '0.11-maintenance'David Lordbefore adoption633b13e

lines 23–25why, one step back
23`Jinja2`_ templates. You will see examples of this later on.
2425For now you should continue with :ref:`tutorial-schema`.

Convert readthedocs link for their .org -> .io migration for hosted projects (#1827)Adam Chainzbefore adoption70de011

lines 26–27why, one step back
26
27.. _Jinja2: http://jinja.pocoo.org/