Django Installation in Windows

These are the steps to install Django in Windows environment.


** Important Notes **

  • Use Command Prompt instead of PowerShell.

1.Download and install Python. Remember to add Path to environment variable.

2. Download and install PIP.

3. Install a virtual environment.

pip install virtualenvwrapper-win

4. Create a virtual environment for all Django projects.

mkvirtualenv <your_virtual_env_name>

5. Activate the virtual environment.

workon <your_virtual_env_name>

6. Download and install Django using PIP.

pip install django

7. To start a new Django project, at designated location (make sure virtual env is activated):

django-admin startproject <your_project_name>

8. Test run Django project using built in web server. In the project root directory, run:

python manage.py runserver