# Topic covered
* What is Django?
* Feature in Django framework
* Advantage / Disadvantage of Django
* Design philosophies
* File Structure Info
* Script vs Modules vs Package vs Library vs Framework
* Projects vs Apps in Django
* Django vs Flask
[Read More]
02-Django Basic
Design pattern(MVC vs MVT) and commands in Django
# Topic covered
* Django Architecture
* Model View Controller(MVC)
* Model View Template (MVT)
* Why is Django called loosely coupled framework?
* django-admin and manage.py
* Write custom django-admin commands?
[Read More]
03-Django Basic
Django Admin Panel
Django admin
Django provides a default admin interface
, that provides a convenient interface
to manage model
data and visualize database
.
It can be used to perform create, read, update and delete (CURD
) operations on the model directly.
04-Django Basic
Models in Django
Django Models
- A Django model is the built-in feature that Django uses to
create tables, their fields, and various constraints
. - Each model class maps to a single table in the database.
- Django Model is a subclass of
django.db.models.Model
and each field of the model class represents a database field (column).
05-Django Basic
Django setting
Django settings
- A Django settings file contains all the
configuration
of your Django installation. - A settings file is just a Python module with module-level variables.
# setting example
ALLOWED_HOSTS = ['www.example.com']
DEBUG = False
DEFAULT_FROM_EMAIL = 'webmaster@example.com'
[Read More]
06-Django Basic
Django Migrations
Django Migrations
Migration in Django is to make changes to your models
Like deleting, adding a field, etc. into your database schema.
[Read More]07-Django Basic
Django Views and its types
Django Views
- A view is a place where we put our
business logic
of the application - The view is a python function that
takes a web request
andreturns a web response
- This response can be the HTML contents of a
Web page
, or aredirect
, or a404 error
08-Django Basic
Django Signal and its types
Django Signal
The Django Signals is a strategy to allow decoupled applications to get notified
when certain events occur.
There are two key elements in the signals machinery: the senders
and the receivers
As the name suggests, the sender
is the one responsible to dispatch a signal,
and the receiver
is the one who will receive this signal and then do something.