- create virtual environment
python -m venv env
- activate on environment Windows (PS: check env file becuase Scrips folder can be named as bin instead of Scrips)
env\Scripts\Activate.ps1 (powershell- used in VS Code)
env\Scripts\activate.bat (cmd)
- install django in the virtual environment.
pip install django
- install all the packages and used to update to new packages installed.
pip install -r requirements.txt
other: after installing new packages please update the requirements.txt shown below.
pip freeze > requirements.txt
First, in the my_django_app, activate the virtual environment with the command: env\Scripts\activate Next go into the ROUS directory, and then to run the server, do the command: python manage.py runserver