Creating a Flask application in PyCharm Professional
The tooling for Flask is a feature found only in the Professional edition of PyCharm. Naturally, you can make a Flask app in the free version of PyCharm, but you’ll be on your own in terms of creating the files and setting up run profiles, special debugging, and so on.
To create a Flask App in PyCharm, just select File | New Project and select the Flask template, as shown in Figure 8.2.
Figure 8.2: To create a new Flask project in PyCharm Professional, choose the template from the New Project dialog
I’ve numbered the most important parts in Figure 8.2:
- In the New Project dialog of PyCharm Professional, you’ll find a template for Flask projects.
- This part is no different than any project we’ve done so far. Fill in the location for the project.
- Create your virtual environment. Once everything is filled in, PyCharm creates and activates the virtual environment...