Django Introduction
1.1 What is Django?
- Django is a
high-level web development framework
- Based on Python
- Free and open source
- Enables Web development to
develop quickly
and with ease - Maintained by Django Software Foundation
high-level web development framework
develop quickly
and with easeMVC vs MCT
Architecturedesign patterns
architectural pattern
that separates
an application into three main logical components
default admin interface
CURD
) operations on the model directly.manage model
data and visualize database
create tables, their fields, and various constraints
.django.db.models.Model
and each field of the model class represents a database field (column).configuration
of your Django installation.# setting example
ALLOWED_HOSTS = ['www.example.com']
DEBUG = False
DEFAULT_FROM_EMAIL = '[email protected]'
[Read More]
make changes to your models
business logic
of the applicationtakes a web request
and returns a web response
Web page
, or a redirect
, or a 404 error
decoupled applications to get notified
when certain events occur.senders
and the receivers
the sender
is the one responsible to dispatch a signal,the receiver
is the one who will receive this signal and then do something.