Django is a Python framework used for rapid web development. In this video, Django is introduced.
- [Narrator] Before we dive in, let's take a look at what Django is. Looking at the official djangoproject.com website, it describes Django as a high level, Python web framework that encourages rapid development in clean, pragmatic design. This raises the question what is a web framework? A web framework is a collection of tools used to build websites. The tools that Django comes with are an object-relational mapper, called an ORM, which helps us make database queries. Django also comes with URL routing which helps determine what logic to follow depending on the URL of a web request.
Another feature is HTML templating which allows us to have presentation logic into insert data into our HTML. Some other tools that come with Django are form handling and uni testing tools as well as some other smaller features. As a point of clarification, I want to mention some things that Django is not or does not include. Django is not a programming language. Python is a programming language and Django is a tool written in Python that we used to develop websites. Django is also not itself a web server.
It does contain a built in web server for convenience while we're developing but it's not used outside of that context. When we deploy Django on a live website, it works in tandem with Apache or EngineX or other web servers. Deploying Django for production is beyond the scope of this course. We will mainly be focusing on using Django to develop a web project. With that in mind, we're ready to start developing with Django.
- Creating a new Django project
- Defining Django models and fields
- Performing Django migrations
- Querying data with the Django ORM
- Building URL handlers and views
- Building Django templates