Basic Python Virtual Environment Setup
Django Project Set Up
Last updated
Django Project Set Up
Last updated
Choose code editor platform like Visual Studio(recommending), Sublime Text, PyCharm, Atom or Vim.
Install Python 3.10 (at least)
Set the Environment Path for python interpreter.
Create a Folder name "Djnago Todo App with User Authentcation"
Open created folder "Djnago Todo App with User Authentcation" in visual studio code.
Open Terminal in vs code (ctrl + `) and change terminal from from powershell to cmd like given below (ref Fig. 1.1)
using python to create a virtual environment for your project namely "pyvenv"
Type below code in your cmd prompt (ref Fig. 1.2)
Now activate your python virtual environment in terminal.
Type below code in your cmd prompt (ref Fig. 1.3)
Create "requirements.txt" file in "Djnago Todo App with User Authentcation" folder. (ref Fig. 1.5)
Save the below lines in requirements.txt file.
Install the requirements.txt using python package manager (pip) in your virtual environment (pyvenv)
Type below code in your cmd prompt (ref Fig. 1.6)
Now check the requirements are successfully installed.
Type below code in your cmd prompt (ref Fig. 1.7)