[Answered ]-Restarted computer and got: ImportError: No module named django.core.management

2👍

You’re missing python packages which means you’re VirtualEnv isn’t activated.

VirtualEnv creates a folder named env by default (though the name can be changed) which is where it stores the specific python installation and all it’s packages. Search for the activate bash script in your project folder. Once you locate you can source it.

source ./env/bin/activate

In the interest of completeness, in Windows it would be a batch file.

env/bin/activate.bat

You’ll know you’re in a virtualenv when your command prompt is prefixed by the env name, for example (env) Macbook user$.

You can now start your django test server.

python manage.py runserver

To deactivate, simply type deactivate at any time in your command prompt. The (env) prefix on the prompt should disappear.

👤Soviut

Leave a comment