Member-only story
Django: Installation on Windows
This blog post will guide you through installing and running a Django application on a Windows operating system.
Prerequisites:
- Python
- IDE
Topics Covered:
- Installing pip
- Installing packages using pip
- Creating a virtual environment
- Creating a Django project
- Running a development server — localhost
- Running a development server — all hosts
- Creating a superuser
Steps
1. Installing pip
There are two methods to install pip:
a. ensurepip
python -m ensurepipb. get-pip.py
curl https://bootstrap.pypa.io/get-pip.py --output get-pip.py && python get-pip.py2. 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









