Chapter 01 Django Key Concepts....10
Web Framework and Django....11
Websites vs. Django Web Apps....14
How Django Handles HTTP Request and HTTP Response....16
Django’s MVT Framework....18
Django Templates vs. Django APIs....22
Chapter 02 Django Quick Start Guide....23
Install Python....25
Install Visual Studio Code....31
Create Project Directory....36
Set Up Virtual Environment....42
Install Django....47
Start Django Project....50
Run Server....53
Database Migration....56
URL dispatcher – urls.py....59
Create Superuser and Log In to Django Admin....61
Start App....65
Create HTML Templates....69
Create Views....73
Add URL Patterns....76
Project vs. App....80
Chapter 03 Django Models and Databases....82
Create a Database in Django....84
Relational Database....86
Create Django Models....90
Makemigrations and Migrate....95
Add Models in Django Admin – admin.py....99
Change Display Name of Record Objects....102
Django Models – Data Field Type....106
Django Models – Field Options....112
Django Models – Help Text Option....115
Django Models – Choices Option....119
Django Models – DateField with datetime Module....123
Django Models – Relationship Fields....127
Django Models – ID....129
Django Models – ForeignKey (OneToMany Relationship)....132
Django Models – OneToOneField....137
Django Models – ManyToManyField....140
Chapter 4 Create CRUD Web Application....143
CRUD Web Application....145
Basic CRUD Structure in Django....147
Django Generic Views....149
How To Write Class-Based Views with Generic Views....152
Generic View Basic Attributes....155
URL Dispatcher for CRUD Views....163
Django Templates for CRUD Views....169
Django Template Language (DTL)....173
Template for List Page....175
Get_FOO_display method....181
Template for Detail Page....184
Template with Model Relations....188
Template for Create and Update Page....193
Template for Delete Page....197
Add Links – {% url %} tag....200
Extend Templates – {% extends %} tag....205
Check Developing App UI on Mobile Device....208
Django Templates with Bootstrap....212
Crispy Forms....227
Customize Views (1) – Change List Order....231
Customizing Views (2) – Filter Lists....234
Context....237
Customize Views (3) – Add Extra Context....239
Modularize Templates – {% include %} tag....241
Static Files in Development Environment – {% static %} tag....245
STATIC_URL and STATICFILES_DIRS....250
Create Index HTML....252
Chapter 5 User Management....256
User Authentication....258
Overview of User Management Functions....259
User Management Function Development with Django....263
Approaches to Building User Management Functions in Django....265
Django Allauth (1) – Introduction....267
Django Allauth (2) – Installation and Initial Settings....269
Django Allauth (3) – Email Verification via Console....278
Django Allauth (4) – Email Verification via Gmail....282
Django Allauth (5) – Social Login with GitHub....290
Django Allauth (6) – Social Login with Google....296
Django Allauth (7) – Allauth Template File Setup....302
Django Allauth (8) – Add Basic Styling with Bootstrap and Crispy Forms....304
Django Allauth (9) – Customize Sign-in and Sign-up Pages....313
User Models....320
Login Required – LoginRequiredMixin....329
User Login Status Icon on Navigation Bar....332
Chapter 6 Deploy Django App....335
Overview of Django App Deployment (1)....337
Overview of Django App Deployment (2)....339
Key Steps of Django App Deployment....343
Hosting Service Initial Settings (1) – AWS Lightsail setup....348
Hosting Service Initial Settings (2) – SSH Remote Connection....353
Manage Local Computer and Remote Server Simultaneously....356
Tips for Managing Local Development and Remote Production Environment....358
Hosting Service Initial Settings (3) – Clone Project Directory with GitHub....360
Production Database Setup....367
Django Production Settings (1) – Settings.py for Development and Production....373
Django Production Settings (2) – Production Settings....377
Django Production Settings (3) – django-environ and .env file....380
Static File Settings....384
Django and Dependency Installation on Production Server....388
Web Server and Application Server in Django....393
Application Server Setup – Gunicorn....395
Web Server Setup – Nginx....400
Domain Setup....406
SSL Setup – Certbot....413
Email Setting – SendGrid....422
Social Login for Production....430
Manage Local Development and Remote Production Environment....437
About D-Libro....444
Django is a powerful tool for building web applications and is highly trusted by developers. It is scalable, flexible, and secure and benefits from extensive community support.This book is designed to help beginners understand the core concepts of Django and web development. Its hands-on approach includes creating real web applications. The guide covers the basics of Django's structure and components to more advanced topics like deploying applications to a production environment.
1. Django Key Concepts:
2. Django Quick Start Guide:
3. Django Models and Databases:
4. Create CRUD Web Application:
5. User Management:
6. Deploy Django App:
This guide also emphasizes the practical aspects of learning Django by including real-world scenarios and detailed code examples, making it an invaluable resource for aspiring Django developers starting from scratch.GET YOUR COPY TODAY AND JOIN THOUSANDS OF SUCCESSFUL DEVELOPERS WHO HAVE MASTERED WEB DEVELOPMENT WITH OUR COMPREHENSIVE DJANGO GUIDE. BUY NOW!