PyCharm 2017.3 Help

Creating Flask Project

This feature is supported in the Professional edition only.

Flask project in intended for productive development of the Flask applications. PyCharm takes care of creating the specific directory structure, and settings.

To create a Flask project, follow these steps

  1. On the main menu, choose File | New | Project, or click the New Project button in the Welcome screen. Create New Project dialog box opens.
  2. In the Create New Project dialog box, specify the following:
    • Project name and location.
    • Project type Flask project.
    • In the Python Interpreter drop-down list, select the Python SDK you want to use. If the desired interpreter is not found in the list, click /help/img/idea/2017.3/cogwheel_framed.png and choose the interpreter type.
    • If Flask is missing in the selected interpreter, PyCharm displays an information message that Flask will be downloaded.
  3. Click /help/img/idea/2017.3/arrow_down_hide_settings.png (More Settings), and specify the following:
    • From the drop-down list, select the template language to be used.
    • The directory where the templates will be stored.
  4. Click Create.

PyCharm creates an application and produces specific directory structure, which you can explore in the Project tool window. Besides that, PyCharm creates a stub Python script with the name <project name>.py, which provides a simple "Hello, World!" example.

See Also

Concepts:

Last modified: 15 September 2017