How to install Django with a specific version

Hemanth S P
DjangoTube:
Published in
Jul 21, 2021
How to install Django with a specific version
Photo by Vedrana Filipović on Unsplash

Hi, in this article I will show simple commands to install Django with a specific version. and run commands inside a single terminal because every command requires virtual should be active.

Create a virtual environment

  1. I used python 3.8 you can use your required python interpreter version.
python3.8 -m venv venv

2. Activate venv virtual environment.

source venv/bin/activate

Install Django

  1. Now you can install Django by specifying the version.
pip3 install django==2.2

or

pip3 install django==3.2 # your required version

2. Create a django project.

django-admin startproject mysite

3. Run the server.

python manage.py runserver
Django v2.2
Django v2.2
Django v2.2
Django v.2.2
Django v3.2
Django v3.2
Django v3.2

Conclusion

I hope you find this article is useful.

--

--