(Mar-14-2024, 12:26 PM)Sowmya Wrote: I am using Visual Studio Code 3.11.8 for python coding practiceLook down in right corner now you use
3.11.5('demo':venv)
,so is not using your Python 3.11.8 version.This mean that most have done
pip install django
in this virtual environment.Unsure just make new environment and use that.
# Make G:\all_flask\django_stuff λ python -m venv demo_env # Cd in G:\all_flask\django_stuff λ cd demo_env\ # Activate G:\all_flask\django_stuff\demo_env λ G:\all_flask\django_stuff\demo_env\Scripts\activate # Install G:\all_flask\django_stuff\demo_env (demo_env) λ pip install django Collecting django ..... Successfully installed asgiref-3.7.2 django-5.0.3 sqlparse-0.4.4 tzdata-2024.1 # Start G:\all_flask\django_stuff\demo_env (demo_env) λ django-admin startproject django_project . # Make the app that gone use G:\all_flask\django_stuff\demo_env (demo_env) λ python manage.py startapp demo_app # Start VS code G:\all_flask\django_stuff\demo_env (demo_env) λ code .So now down in right corner i have
3.12.0('demo_env':venv)
.