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
1.. _tutorial-folders:23Step 0: Creating The Folders4============================56It is recommended to install your Flask application within a virtualenv. Please7read the :ref:`installation` section to set up your environment.89Now that you have installed Flask, you will need to create the folders required10for this tutorial. Your directory structure will look like this::1112 /flaskr13 /flaskr14 /static15 /templates1617The 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.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.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`.3031.. _Jinja2: http://jinja.pocoo.org/