'VirtualEnv don't save django installation

I'm learning about Django from "Python Django 7 Hour Course" mady by Traversy Media on YT. I'm doing exactly the same things as he and everything works fine. But, every time I'm deactivating venv, after reentering, I can't use django-admin and pip freeze is not showing any installation of django. Do I need to save it somewhere? I'm using pip 22.0.3 and django 4.0.3

screen of pip freeze in env



Solution 1:[1]

After you open your code in the Visual Studio Code or other editor that you use, you should activate your virtual env in the terminal with source .venv/bin/activate (for Linux/Mac) or .venv/Scripts/activate where .venv is the name of the folder of your virtual env that you created earlier.

After that your activated virtual env should appear in the terminal like this: enter image description here

If not, what it looks like for you? Can you provide screenshots?

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 StayPerfect