2. Rest Framework
Django Rest Framework
# Topic covered
* REST API
* REST Architectural Constraints
* Methods of REST API
# Topic covered
* REST API
* REST Architectural Constraints
* Methods of REST API
# Topic covered
* API
* Why would we need an API?
* Types of APIs based on scope of use
* Types of APIs based on architecture
* WEB API
* What Is GraphQL? REST vs. GraphQL
# Topic covered
* Django default User Model
* Custom User Model
* AbstractUser vs AbstractBaseUser
* Validating objects
* full_clean()
* Model.clean_fields()
* Model.clean()
* Model.validate_unique()
# Topic covered
* Django Debugger
* @query_debugger
* Django Debug Toolbar
* django-extensions
* Django Query optimization
# Topic covered
* Relationship
* OneToOne
* ManyToOne
* ManyToMany
* related_name
* related_query_name
# Topic covered
* Intro to Django ORM
* General/Basic Queries
* Field lookups
* Set Operations
* F() Expression
* Aggregation
* Django Annotations
# Topic covered
* Django Signal
* Types of Signal
* Model signals
* Management signals
* Request/response signals
* Test signals
* Database Wrappers
* Working
* Without signal.py
* With signal.py
* Custom signals
# Topic covered
* Django Views
* Function-Based Views
* Class Based Views(CBVs)
* Django request
# Topic covered
* Django Migrations
* Apply migration
* Revert Migrations
configuration of your Django installation.# setting example
ALLOWED_HOSTS = ['www.example.com']
DEBUG = False
DEFAULT_FROM_EMAIL = '[email protected]'