Guía Paso a Paso para Instalar Django y crear tu primer aplicación

Install Django

Now, that we have created a virtual environment, we are ready to install Django.

Note: Remember to install Django while you are in the virual environment!

Django is installed using pip, with this command:

py -m pip install Django

Which will give a result that look like this (at least on my windows machine)

Collecting Django   Downloading Django-4.0.3-py3-none-any.whl (8.0 MB)
That's it! Now you have installed Django in your new project, running in a virtual environment!

Windows, Mac, or Unix?

You can run this project on either one. There are some small differences, like when writing commands in the command prompt, Windows uses py as the first word in the command line, while Unix and MacOS use python.

py --version

In the rest of this tutorial, we will be using the Windows command

---
---

Check Django Version

You can check if the Django is installed by asking for its version number like this:

django-admin --version

If Django is installed, you will get a result with the version number:

4.1.2
----