Examples


Django Install


The Python package manager, to fetch and install the Django framework and its dependencies from the Python Package Index (PyPI). This process enables developers to set up Django quickly and easily, facilitating the creation of web applications in Python.

Install Django

  • Now that you have created a virtual environment, you can install Django.
  • Remember to install Django in a virtual environment.
  • Install Django using the command given below.

pip install django
(myenv) D:\django_projects>pip install django
Collecting django
  Using cached Django-4.2.15-py3-none-any.whl (8.0 MB)
Collecting tzdata; sys_platform == "win32"
  Using cached tzdata-2024.1-py2.py3-none-any.whl (345 kB)
Collecting asgiref<4,>=3.6.0
  Using cached asgiref-3.8.1-py3-none-any.whl (23 kB)
Collecting sqlparse>=0.3.1
  Using cached sqlparse-0.5.1-py3-none-any.whl (44 kB)
Collecting typing-extensions>=4; python_version < "3.11"
  Using cached typing_extensions-4.12.2-py3-none-any.whl (37 kB)
Installing collected packages: tzdata, typing-extensions, asgiref, sqlparse, django
Successfully installed asgiref-3.8.1 django-4.2.15 sqlparse-0.5.1 typing-extensions
-4.12.2 tzdata-2024.1
WARNING: You are using pip version 20.2.3; however, version 24.2 is available.
You should consider upgrading via the 'd:\myenv\scripts\python.exe -m 
pip install --upgrade pip' command.

Check Django Version

(myenv) D:\django_projects>django-admin --version
4.2.13

Prev Next