bundled/flask/docs/tutorial/folders.rst @ 9030dc9517cf
web: add basic tests This patch adds a new test module `test_web` to automate testing of web requests. For now the tests are rather simple and only check for expected status codes. To set up the flask app within the tests, it has to be configured properly. This is the reason why the app configuration part in `web.py` has been moved into an own function - now it may also be used by the test module.
| author | Oben Sonne <obensonne@googlemail.com> |
|---|---|
| date | Mon, 02 Jul 2012 22:32:48 +0200 |
| parents | f33efe14bff1 |
| children | (none) |
.. _tutorial-folders: Step 0: Creating The Folders ============================ Before we get started, let's create the folders needed for this application:: /flaskr /static /templates The `flaskr` folder is not a python package, but just something where we drop our files. Directly into this folder we will then put our database schema as well as main module 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 `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/