We know Django is the python framework ,so it only work with python installed system,before starting Django we should install python.So lets see how to install python in windows 10. Fortunately installing python is so easy
Install python in windows 10
First you need to get the python installer,as of now latest python version that support Django is Python 3.6.7. Go to https://www.python.org/downloads/ and Download Python 3.6.7 and install don’t forget to tick add python 3.6 tp PATH,it will assign PATH variable
Check python installed successfully
open CMD in windows
c:/users>python will respond like below Python 3.6.7 (v3.6.7:6ec5cf24b7, Oct 20 2018, 13:35:33) [MSC v.1900 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information.
install pip if not installed in your system
Create a project directory, you can create project directory anywhere in your system,here i created in my D drive with name my_project
then move current directory to project directory in CMD
D:\my_project > Step 5)
Install virtual environment using pipD:\my_project>pip install virtualenv Create a virtual environment with name env_mysite you can rename anything as per your reference D:\my_project>virtualenv env_mysite
D:\my_project>env_mysite\scripts\activate env_mysitePS D:\my_project>
env_mysitePS D:\my_project>pip install "django>=2.1,<2.2"
Open http://127.0.0.1:8000/ in any browsers
Congratulation you installed Python django framework