Instalación de Django. Cómo instalar el framework web Django | Curso Django 🦄 # 2
Installing Django: A Step-by-Step Guide
Introduction to Django
- The video begins with an introduction to the course on Django, emphasizing the installation process as a crucial first step.
What is Django?
- Django is described as a framework belonging to the Python programming language, specifically designed for creating web applications.
- Viewers are directed to the official Django website (djangoproject.com) for downloading the framework.
Downloading and Installing Django
- It’s noted that prior knowledge of Python is essential; viewers should ideally have intermediate or advanced skills in Python before proceeding.
- Instructions are provided on how to check if Python is installed by using the command prompt (cmd), where typing
pythonreveals the installed version.
Version Compatibility
- The speaker clarifies that there’s a distinction between Python's version and Django's version, highlighting that they can be different.
- Two installation methods are discussed: local installation (same versions across projects) versus virtual environments (different versions per project).
Using pip for Installation
- The easiest way to install Django is through pip, which comes pre-installed with Python 3.
- The command
pip install django==3.0.7is recommended for installing a specific version of Django.
Verifying Installation
- After installation, users can verify it by opening Python shell and importing Django with
import django, followed by checking its version usingdjango.__version__.
Updating Existing Installations
- The speaker demonstrates updating from an older version of Django (3.0.5 to 3.0.7), showing how the same command can be used for both installation and updates.
Conclusion and Engagement
- With successful installation confirmed, viewers are encouraged to leave comments for any questions or suggestions regarding issues faced during installation.
- The video concludes with a call-to-action encouraging likes, subscriptions, and following on social media platforms while promoting additional content available on the channel.