From the course: Building RESTful APIs with Flask

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Setting up a run configuration

Setting up a run configuration

From the course: Building RESTful APIs with Flask

Start my 1-month free trial

Setting up a run configuration

- [Instructor] Flask, like many web development frameworks comes with its own built-in development web server. You definitely don't want to use this in production though, because it can be very brittle. But it's very convenient for development work. There are two ways to run your project. The first is to run it from the Terminal. If you open the Terminal window in PyCharm, you'll see the default shell for your operating system. On the Mac it's Bash, and on the PC it's usually PowerShell. The commands are the same in either environment. You might have noticed that the prompt here has something in front of it, in my case it's venv in parentheses. The virtual environment we created when we created the project needs to be activated. When you work in PyCharm it does this for you automatically, and you can tell the virtual environment is active because of the display in front of the command prompt. From the command prompt simply type in python then the file you want to run, in this case…

Contents