How to install Django 2.1.7 on Windows 10

How to install django 2 on windows 10/8/7. So, in order to install Django 2 , you need to have python installed already on your operating system.

Download & Install Python

Follow this python download link to download & install the latest version of python on your windows 10/8/7 operating system.

Verify python & pip installation with command prompt

python --version
python -V

pip --version
pip list

Let’s create virtual environment on Windows 10

Launch your command prompt, without changing the directory run the commands below

pip install virtualenvwrapper-win
mkvirtualenv env_name

Now, close the command prompt and relaunch it to activate the python environment, run the following command

workon env_name

After installing python, pip and virtual environment wrapper on Windows OS, we created the virtual environment and activated it. Now, let’s install the django 2 on Windows 10.

Stay in the activated python virtual environment, run the following command to install latest version of django

pip install django

Let’s create our first Django app

From the activated virtual environment, run these following the command to create django project, change directory into the django project, run the django development server, and load the app on the browser.

djnago-admin startproject project_name
cd project_name

To run django development server

python runserver

Now, launch your preferred browser, and navigate to http://localhost:8000

django 2 on windows 10
Here is your Django 2 on Windows 10

By Tube Mint

I am a YouTuber and I also do niche marketing. In the process of create my niche blog using WordPress, Drupal, and GatsbyJS, I learned a few things like html, css, JS, CMS, MVC frameworks, C++, Python, Ruby, MySQL, Windows and Linux. After some time.. I realized that I can share my knowledge with people on YouTube and through my blog. So, here I am. You can ask me if you have any question about these technologies.