i am new in python learning.after learning python basics i have moved to learn python web framework Django. for this
i followed these steps for installing django on my windows after installing python 3.7
- first i opens cmd command prompt (C:\users\mypcname)
- then i created virtual environment wrapper with command pip install virtualenvironmentwrapper-win
- then i created virtual environment with command mkvirtualenv test
- then i entered command workon test to enable virtual environment
- then tried to install django with command pip install django and its successfully installed
- then i created projects directory with command mkdir djangoprojects
- then i created app directory in djangoprojects(which i created in last step) with command django-admin startproject firstproject
- then i moved to firstproject with command cd..
- there i tried to run server with command python manage.py runserver and got error
Traceback (most recent call last): File "manage.py", line 10, in main from django.core.management import execute_from_command_line ModuleNotFoundError: No module named 'django'
The above exception was the direct cause of the following exception:
Traceback (most recent call last): File "manage.py", line 21, in main() File "manage.py", line 12, in main raise ImportError( ImportError: Couldn't import Django. Are you sure it's installed and available on your PYTHONPATH environment variable? Did you forget to activate a virtual environment?
can anyone guide me what i have done here wrong ? why its showing error