Sitemap
Towards Dev

A publication for sharing projects, ideas, codes, and new theories.

Django: Installation on Windows

4 min readFeb 11, 2024

--

This blog post will guide you through installing and running a Django application on a Windows operating system.

Prerequisites:

  1. Python
  2. IDE

Topics Covered:

  1. Installing pip
  2. Installing packages using pip
  3. Creating a virtual environment
  4. Creating a Django project
  5. Running a development server — localhost
  6. Running a development server — all hosts
  7. Creating a superuser

Steps

1. Installing pip

There are two methods to install pip:

a. ensurepip

python -m ensurepip

b. get-pip.py

curl https://bootstrap.pypa.io/get-pip.py --output get-pip.py && python get-pip.py

2. Installing packages using pip

pip install <package_name_1> <package_name_2> <package_name_3>

If a permission error occurs during the package installation process, add the user flag as shown below:

pip install --user <package_name>

Install multiple packages from a file using pip:

pip install -r <file_name>.txt

--

--