步骤0:创建文件夹

Before getting started, you will need to create the folders needed for this application:

/flaskr
    /flaskr
        /static
        /templates

这个应用将以Python包的形式安装和运行。这是安装和运行Flask应用所推荐的方式。在本教程的后面,你会明确看到如何运行flaskr现在只需往前并创建这个应用的目录结构。In the next few steps you will be creating the database schema as well as the main module.

简单提示一下,该应用的用户能够通过HTTP访问static文件夹里面的文件。这是CSS和JavaScript文件放置的地方。Flask会在templates文件夹里寻找Jinja2模板。后面你会继续看到这种例子。

For now you should continue with Step 1: Database Schema.