00:36 So it’s either when you’re starting from scratch, it’s going to be mostly installing Django and pinning your dependencies, but if you work on an existing project, then you might want to install pinned dependencies.
When I execute this command, then
pip makes a connection to PyPI, fetches the Django package, and installs it into the virtual environment. That’s why it’s important that you have that activated because otherwise it goes into your system install of Python, which you don’t want. Now, I’m not going to make you wait for this, so let’s skip through the time of install, and we’re done! So Django is installed,
Now you might wonder, “Okay, so what if you want a specific version of Django, maybe an older one? What do you do?” And you can do that as well. If you want to install a specific Django version, then you use the exact same command but you add something at the end, which is you define the version that you want to use, so a double equal sign (
==) and then a version number is going to make
pip install that specific version of Django. So this command would install the version
2.2.11 of Django.
02:29 Now in the next lesson, you’re going to learn about how to pin your dependencies, because in this case you would have a dependency of a specific Django version, so you want to make sure that this is also noted somewhere in your project—that if someone else uses your project, they know that they should work with Django 2.2.11 instead of the newest version. And to note this, you need to pin your dependencies.
Become a Member to join the conversation.