PyCharm provides a Dedicated project type, support for the built-in Flask debugger, support for Jinjia2 and Django templates, and a command-line interface are all part of the Flask development process (CLI), moving back and forth between views and templates, Stubs of the Flask routes can be created using live templates in the Flask group, together with code completion and resolution.
When the flask is enabled, the Python console functions as a Flask console. The Professional edition by default has Flask integration enabled. Deselect the relevant checkbox in the Languages & Frameworks -> Flask dialogue window in the project Preferences/Settings if you need to stop Flask integration, for instance, to ignore Flask routes or to prevent the creation of new Flask Run/Debug settings.
If you want to create a new Flask project or add a Flask framework to your project, go through the following steps in order.
Step – 1: Go to File tab, click on New Project, and select Flask.
Step – 2: Configure your Flask framework settings and click on the Create button. You can navigate some more settings options, namely, template language and templates folder.
Step – 3: Once you click on the Create button, the following dialog box will appear, asking you whether you want to open your Flask project on a new window, the same window, or attach the project to the current one. Choose as per your will and proceed.
Once your virtual environment is created, your Flask project will open up as shown in the following snapshot.
Now, you are all set to use you integrated Flask framework in PyCharm. Happy Coding!