Flask installation and setup in Visual Studio Code | Flask in VS Code Tutorial Part #1

Аватар автора
Кодовая Дистанция
In this tutorial, we will learn how to install flask and set up a development environment for Flask in Visual Studio Code. 1) Flask is a lightweight python framework for web applications with basic support for URL routing and page rendering. 2) Also known as &framework&because it does not directly provide the following features like validation, database abstraction, authentication, and so on. We can use these features with help of a special python package which is called Flask Extension. 3) Flask does not provide a template engine, but installing Flask includes the &templating engine by default. Prerequisites ============= 1) Install the Python extension (by Microsoft) in Visual Studio Code. 2) Install a version of Python 3 3) On Windows, make sure the location of your Python interpreter is included in your PATH environment variable. Create a project environment for the Flask =========================================== Important Note : ================ we need to create a virtual environment in which we will install Flask, Using a virtual environment avoids installing Flask into a global Python environment and gives you exact control over the libraries used in an application. let&do it together, Step 1: Create a folder and open it in visual studio code. Step 2: open a new terminal in VS code and run this command to create a virtual environment: py -3 -m venv .venv Step 3: now run following command to activate virtual environment : .venvscriptsactivate Step 4...

0/0


0/0

0/0

0/0

0/0