flask/docs/tutorial/folders.rst

24 lines
772 B
ReStructuredText
Raw Normal View History

.. _tutorial-folders:
Step 0: Creating The Folders
============================
Before we get started, let's create the folders needed for this
application::
/flaskr
/static
/templates
2010-12-30 09:00:56 -06:00
The `flaskr` folder is not a python package but just something where we
drop our files. We will then put our database schema and main module
directly into this folder in the following steps. The files inside
the `static` folder are available to users of the application via `HTTP`.
This is the place where css and javascript files go. Inside the
2010-12-30 09:00:56 -06:00
`templates` folder, Flask will look for `Jinja2`_ templates. The
templates you create later in the tutorial will go in this directory.
Continue with :ref:`tutorial-schema`.
.. _Jinja2: http://jinja.pocoo.org/2/