Intro to Django Lab Exercise

Introduction to building your first Django app

This lab is your chance to dive into the world of Django by building a simple yet practical polls application. To guide you on this exciting journey, we’ll leverage the best resource available: Django’s official documentation.

Why learn from the official Django documentation?

Here’s why the official documentation is your secret weapon:

This lab serves a dual purpose: it introduces you to Django and equips you with the skills to navigate and utilize the official documentation effectively.

Exercise

You will be following the “Writing your first Django app” tutorial directly from the Django documentation. This hands-on tutorial will guide you through creating a basic poll application. It’s designed to give you a practical understanding of how Django applications are built from scratch. For this lab, you will complete Parts 1 through 4 of the tutorial. The subsequent parts of the tutorial cover topics that we will explore together in future lessons.

Important note:

Before starting the tutorial, we will walk you through the setup and installation of Django in our lab setup lesson. Therefore, you do not need to perform any setup or installation steps described in the tutorial. You can jump straight into the tutorial starting at Tutorial: Part 1.

Begin the tutorial here: Writing your first Django app, part 1

This tutorial series will cover:

Learning objectives

By completing this tutorial, you will:

We encourage you to carefully follow the tutorial and try to understand the rationale behind each step. If you encounter challenges, review the relevant sections of the tutorial or discuss them with your classmates. The skills you acquire here will be essential as you progress to more complex Django projects.

Let’s get started on building your first Django application and diving deep into the world of web development with one of the most popular frameworks today!