0% found this document useful (0 votes)
12 views7 pages

Django

Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1/ 7

Agenda

• Learn about the advantages of


using Django
• Investigate the architecture of a Django site
• Set up a new Django project with multiple
apps
• Build models and views
• Create and connect Django templates
• Upload images into your Django site
Why to learn Django?
• First of all, it’s written in Python, one of the
most readable and beginner-friendly
programming languages
• One of the great things about Django is
that you don’t need to
consider external Python packages
because Django has so many features
included.
Django Architecture
A Django website consists of a single project that’s
split into separate apps.

The idea is that each app handles a self-contained task


that the site needs to perform. As an example, imagine
an application like Instagram.
There are several different tasks that it needs to
perform:
User management: Logging in and out, registering,
and so on
The image feed: Uploading, editing, and displaying
images
Private messaging: Sending messages between
users and providing notifications
MVC Architecture

• Model defines the data structure. This


is usually the database description and
often the base layer to an application.
• View displays some or all of the data to
the user with HTML and CSS.
• Controller handles how the database
and the view interact. This controller
part is handled by Django itself.
The pattern Django utilizes is called
the model-view-template (MVT) pattern

You might also like