All the commands you run in cmd/shell without inside an activated virtual environment, run globally (with global python and packages).
If activated correctly all the commands will run inside the virtual environment automatically. No need to navigate folders.
What is important is activating the environment and
run all the commands inside activated cmd/shell.
Django project should be in the virtual environment. Otherwise what’s the point?.
Once you have come up with a suitable name for your Django project, like mine: my_tennis_club, navigate to where in the file system you want to store the
(in the virtual environment),
I will navigate to the myworld folder, and run this command in the command prompt:
Look here how to create virtual environment.
django_create_virtual_environment.
- Environment creation.
python -m venv myworld
Result folder structure.
myworld
Include
Lib
Scripts
.gitignore
pyvenv.cfg
- Activation.
myworld\Scripts\activate.bat
If activated correctly, path should look like this.
(myworld) C:\Users\Your Name>