# Topic covered
* Django default User Model
* Custom User Model
* AbstractUser vs AbstractBaseUser
* Validating objects
* full_clean()
* Model.clean_fields()
* Model.clean()
* Model.validate_unique()
[Read More]
HTTP request-response lifecycle
Web Request in Django
1.1 ๐ช๐ต๐ฎ๐ ๐ต๐ฎ๐ฝ๐ฝ๐ฒ๐ป๐ ๐๐ต๐ฒ๐ป ๐๐ผ๐ ๐๐๐ฝ๐ฒ ๐ฎ ๐จ๐ฅ๐ ๐ถ๐ป๐๐ผ ๐๐ผ๐๐ฟ ๐ฏ๐ฟ๐ผ๐๐๐ฒ๐ฟ?
The process involves the browser, your computerโs operating system, your internet service provider, the server where you host the site, and services running on that server.
- You
type url.com
in your browser - The browser
looks up the IP address
for the domain url.com - Then the browser
initiate TCP connection
with the server - The browser the
sends the HTTP request
to the server - The server processes the request and sends back a
response
- The browser then
renders
the content
01-Django Basic
Django Introduction, Feature, Advantage of Django,
# 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.