I have installed Django after activating my virtualenv but still I am getting following error
from django.core.management import execute_from_command_line
Import
If you already activated your virtualenv (source /path/bin/activate
) then check if you have installed Django.
pip install django
With next command you can see if Django was installed.
pip freeze | grep django
Another thing that you can try is to remove first line (#!/usr/bin/env python
) in the manage.py
file.