django-nested-admin module not found

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:

django_create_project



Look here how to create virtual environment.

django_create_virtual_environment.

  1. Environment creation.
python -m venv myworld

Result folder structure.


myworld
  Include
  Lib
  Scripts
  .gitignore
  pyvenv.cfg
  1. Activation.

myworld\Scripts\activate.bat

If activated correctly, path should look like this.

(myworld) C:\Users\Your Name>

All the commands, including django project creation, migration, runserver, pip install should run inside virtual environment.

While it’s activated.

1 Like