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 fileTake it
The walk stopped after 200 commits: lines older than dfeabb7 point at it.
Merge pull request #1315 from brettgerry/deprecate-textfieldMarkus Unterwaditzerbefore adoptiondfeabb7
lines 1–5why, one step back1.. _tutorial-folders:23Step 0: Creating The Folders4============================5resolve merge conflictsKenneth Reitzbefore adoption31174fe
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 #1315 from brettgerry/deprecate-textfieldMarkus Unterwaditzerbefore adoptiondfeabb7
line 8why, one step back8resolve merge conflictsKenneth Reitzbefore adoption31174fe
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 #1315 from brettgerry/deprecate-textfieldMarkus Unterwaditzerbefore adoptiondfeabb7
line 12why, one step back12 /flaskrresolve merge conflictsKenneth Reitzbefore adoption31174fe
lines 13–15why, one step back13 /flaskr14 /static15 /templatesMerge pull request #1315 from brettgerry/deprecate-textfieldMarkus Unterwaditzerbefore adoptiondfeabb7
line 16why, one step back16resolve merge conflictsKenneth Reitzbefore adoption31174fe
lines 17–19why, 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 exactly19how to run ``flaskr`` later on in this tutorial.Merge pull request #1315 from brettgerry/deprecate-textfieldMarkus Unterwaditzerbefore adoptiondfeabb7
line 20why, one step back20resolve merge conflictsKenneth Reitzbefore adoption31174fe
lines 21–29why, one step back21For 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.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 #1315 from brettgerry/deprecate-textfieldMarkus Unterwaditzerbefore adoptiondfeabb7
lines 30–31why, one step back3031.. _Jinja2: http://jinja.pocoo.org/