Web Frameworks and Django
SUMMARY MAIN NOTES
Languages can be Contents
strongly typed Types and String Interpolation
(e.g. Python) Python
meaning they have JavaScript
stricter rules at Web App Architecture
Three-tier Architecture
compile time, so
Model View Controller (MVC)
errors are more
Model View Template (MVT)
likely to happen
Web Frameworks
Web Architecture Support for
has three-tier: Advantages
Django
front end is the Models
client tier URL Dispatcher
business logic Views
Templates
is middle tier.
Django and MVC
Divided in:
Development server
presentation
logic: the
UI Types and String
business Interpolation
logic:
processes
and
services
💡 Strongly typed means there are stricter
rule at compile time, so errors and
exceptions are more likely to happen. It
data
mostly has to do with return values,
access
variable assignment, procedure argument
logic:
and function calling.
functionality
Web Frameworks and Django 1
, back end is
the data tier Python JavaScript
Django is based dynamically dynamically weakly
on the Model View strongly typed typed
Controller, a
f-strings template literals
software
architectural
pattern for
implementing UI. Web App Architecture
Divided in:
Model:
Three-tier Architecture
accesses, Front-end is the client tier
manipulates
Business Logic is the middle tier
and retrieves
the data, and Implements UI application: Presentation
passes it to Logic
the view Implements core processes and services:
View: the UI, Business logic
passes the Implements the data access functionality:
interaction to Data Access Logic
the Controller
The database is the data tier or back-end
Controller:
takes user
input, updates Model View Controller
Model and
notifies the
(MVC)
View.
A software architectural pattern for
Django also uses implementing user interfaces. It divides
the Model View
software application into three
Template:
interconnected parts:
Model handles
the data
- Information accepted from user
- Internal representations of
Template
handles the UI information
- Information presented to user
Web Frameworks and Django 2