Creating Our First App & Analyzing It
Course Content
0 / 164 completedIntroduction
Django - What & Why
Watch Before You Start
Installing Python
Running Server
Installing Django & Vscode
Creating Our First Django Project & Analyzing It
Django Apps - What & Why
Creating Our First App & Analyzing It
What Are URLs & Views
How Everything Is Working Internally & Reason Behind URLs File Inside App
Creating Our First URL & View
Returning HTML As Response
Implementing Logic For Showing Single Post
Dynamic URLs
Creating Our First Dynamic URL & Understanding Path Converters
Exploring HttpResponse Subclasses
Redirecting User
Reverse Function & Named URLs
Module Introduction
Adding & Rendering Templates
Understanding Template Settings & Templates Namespacing
Django Template Language & Passing Context
What Are Tags & For Tag
If Else Tag
For Empty Tag & For Loop Variables
Filters In Django Template Language
Showing Single Post
URL Tag
Understanding DIRS Settings
Template Inheritance
Working With Static Files
Global Static Files
Includes In Django Template Language
Adding Templates & Styling To Our Project
Custom 404 Page & Raising Http404
Context Processors
Databases Quick Primer
Understanding Models
Understanding ORM & Django ORM
Showmigrations Command & Re-Migrations
Migrations
Creating Our First Model
Save( ) & Create( ) Method
Connection.queries & Watching SQL Generated Behind The Scenes
All() Method & Deep Diving Into QuerySets
Understanding Get, Filter & Exclude QuerySet API Methods
Querying Using AND OR Operators
Limiting QuerySets
Exploring More QuerySet API Methods
Q Object
Field Lookups
Deleting Single Row & Multiple Rows
QuerySets Are Lazy
Updating Single Row & Multiple Rows
Fetching & Rendering Data In Templates
get object or 404
Fetching Post From Database & Rendering It Inside Template
Understanding and Deep Diving Into Aggregation
Creating Super User & Accessing Admin Panel
Registering Model Inside Admin & str Method
Changing Header Title & Site Title
Listfilter & Search Functionality
Exploring Admin Panel
ModelAdmin Class & ModelAdmin Options
Understanding Django Forms & Project Setup
Understanding GET & POST Method
Understanding CSRF Attack & CSRF Tokens
Creating & Rendering Form
Handling Form Submission
Understanding How Form Submission Works Step by Step
Exploring More Form Fields
Core Field Arguments
Output Styles
Looping Through Form Fields
Rendering Form Fields Manually
Custom Validation On Complete Form
Widgets In Django Forms
Custom Validation On Single Form Field
Styling Django Form Custom CSS Classes and IDs on Form Fields
Introduction To ModelForms
Styling Form Errors
Creating Our First ModelForm
Save( ) Method On ModelForm
CRUD Using ModelForms
CRUD Using Django Forms API
Custom Labels, Help Texts, Error Messages, and Widgets in Django ModelForms
Using Clean Method & Custom Validators In ModelForms
Fields & Exclude Attribute
Understanding Cookies & How Cookies Works
Cookies Limitations
Using Cookies With Render Function
Working With Cookies In Django
Understanding Middlewares & How They Work
Custom Class Based Middleware
Returning Response From Middleware & Middleware Ordering
Custom Function Based Middleware
Exploring Built-In Middlewares
Understanding All Middleware Hooks
Understanding Sessions & How Sessions Work
Flush Method
Exploring Session Methods
Working With Sessions
Session Modified
Session Settings
Enabling Authentication & Creating An App
How Authentication Works
Customizing AuthenticationForm
Customizing UserCreationForm & Getting More User Data While Registration
Fixing A Field
Understanding & Implementing Login Functionality Step By Step
Implementing User Registration
Implementing Logout Functionality Step By Step
Authentication Data In Templates
Limiting Access To Logged-In Users & Anonymous Users
redirect authenticated user
Using Built-In Authentication Views
Customizing Built-In Authentication Views
Pagination Logic In Views
Pagination Logic In Template
Orphans & allow empty first page arguments
Exploring & Understanding Different Relationship Types
Understanding & Adding One-To-One Relationship
Related Objects Query
Querying Using Relationships
on delete Argument
Adding Many-To-One Field
Querying Using Many To One & Related Object Query
Understanding & Adding Many-To-Many Relationship
Working With Many-To-Many Field
Adding User Field To Comments & Rendering Comments On Post Page
Showing Tags On Post Page
Creating Model With FieldField
Project Setup
Using ImageField
Creating Form & Handling File Upload
Adding & Serving Post Image In Blog Project
Serving Files
Not Showing Pagination If Less Posts
Adding Search Functionality
Improving Search Functionality
Handling Root URL
Deep Dive Into Class Based Views
TemplateView (Base Views)
RedirectView (Base Views)
View Class (Base Views)
ListView (Generic Display Views)
FormView (Generic Edit Views)
DetailView (Generic Display Views)
CreateView (Generic Edit Views)
UpdateView (Generic Edit Views)
DeleteView (Generic Edit Views)
Converting Blog Project Function Based Views Into Class Based Views Part 2
Pagination With Class Based Views
Converting Blog Project Function Based Views Into Class Based Views
ChatGPT Small Introduction
Prompts Only For Django Developers
Using ChatGPT For Project Setup
What Is Prompt & Best Prompt Formula
Using ChatGPT For Generating Views
Using ChatGPT For Debugging
Using ChatGPT For Generating Complex Database Queries
Using ChatGPT For Models
Using ChatGPT For Model Relationships