Search⌘ K
AI Features

Visual Studio and Packages Installation

Explore how to configure Visual Studio Code as your IDE, create and activate virtual environments to manage dependencies, and install crucial Python packages such as Django, Pillow, and psycopg2. This lesson helps you establish a robust development environment essential for Django web development.

If you want to work on the app in this course or practice Django web development on your own machine, we recommend Visual Studio Code as an IDE. In this lesson, we describe how to set up your development environment once you have installed Visual Studio Code

Create project folder

Start by creating a folder where you would store all your project files. I named my folder EXAMPLE. Go to Visual Studio Code and open this folder by clicking on File, then Open. Inside that folder create another folder with the name of your project. I named this folder project.

Open the terminal window by going to Terminal, then click New Terminal. A new terminal will appear at the bottom of VS code. Make sure you are inside the first folder you created (EXAMPLE) by looking at the path in the command line. After you have checked this, go into the folder for your project (project) by issuing the cd command as shown below.

Virtual environment

A virtual environment (venv) helps us keep our individual projects relatively contained in order to avoid installing Python packages globally on our computer which might cause problems between ...