folders.rst
This file
Path
docs/tutorial/folders.rst
23 lines · 797 bytes
Last changed by
Merge pull request #1277 from iKevinY/doc-fixesMarkus Unterwaditzerbefore adoption82d7c49
History of this fileTake it
The walk stopped after 200 commits: lines older than eca5306 point at it.
Merge pull request #1262 from msabramo/JSONIFY_END_WITH_NEWLINEMarkus Unterwaditzerbefore adoptioneca5306
lines 1–12why, one step back1.. _tutorial-folders:23Step 0: Creating The Folders4============================56Before we get started, let's create the folders needed for this7application::89 /flaskr10 /static11 /templates12Merge pull request #1277 from iKevinY/doc-fixesMarkus Unterwaditzerbefore adoption82d7c49
lines 13–15why, one step back13The ``flaskr`` folder is not a Python package, but just something where we14drop our files. Later on, we will put our database schema as well as main15module into this folder. It is done in the following way. The files insideMerge pull request #1262 from msabramo/JSONIFY_END_WITH_NEWLINEMarkus Unterwaditzerbefore adoptioneca5306
line 16why, one step back16the :file:`static` folder are available to users of the application via HTTP.Merge pull request #1277 from iKevinY/doc-fixesMarkus Unterwaditzerbefore adoption82d7c49
lines 17–19why, one step back17This is the place where CSS and Javascript files go. Inside the18:file:`templates` folder, Flask will look for `Jinja2`_ templates. The19templates you create later on in the tutorial will go in this directory.Merge pull request #1262 from msabramo/JSONIFY_END_WITH_NEWLINEMarkus Unterwaditzerbefore adoptioneca5306
lines 20–23why, one step back2021Continue with :ref:`tutorial-schema`.2223.. _Jinja2: http://jinja.pocoo.org/