Python Django – The Practical Guide

Python Django – The Practical Guide

English | MP4 | AVC 1280×720 | AAC 44KHz 2ch | 255 lectures (23h 4m) | 6.71 GB

Learn how to build web applications and websites with Python and the Django framework

Python is the most popular programming language of the world – it’s versatile, easy to learn and very powerful!

We already got a Python course which you can take if you want to learn Python.

But one of the primary things you can build with Python is a website! You can use Python for web development.

And to make that easier, you would typically use a framework like Django – simply because that allows you to focus on your core business logic and you don’t need to re-invent the wheel and implement all the nitty-gritty technical details from scratch.

And this course is about Django – the most popular Python web development framework out there!

Django covers all aspects of web development – from handling requests and responses, over rendering dynamic HTML pages with templates, all the way up to making database access and data management easy. It’s all baked in and it’s all covered in great detail in this course!

This course teaches Django from the ground up – you don’t need to know anything about it to get started. Basic Python and web development knowledge is all you need.

We’ll start at the absolute basics and understand how to create Django project, how to run them and how to add features – step by step.

In detail, this course covers:

  • Installing Django
  • Creating and understanding Django projects
  • Understanding URLs, views, requests and responses
  • Working with templates and static files like CSS and images
  • Working with data and models
  • Connecting data with relationships (one-to-many, one-to-one, many-to-many)
  • Querying data with Django’s powerful model solution
  • Adding administration panels to your projects
  • Handling user input with forms – manually and with Django’s built-in form support
  • Advanced features like class-based views (and when to use them)
  • Dealing with file uploads and how to serve uploaded files
  • Working with sessions
  • In-depth deployment instructions and examples
  • Different ways of deploying and serving static files and user uploads
  • And much more!

All those concepts are taught in great depth and backed up by a complete example course project where we build a “Blog website” from the ground up.

Therefore, you’ll learn all the important concepts and the theory and you’re also going to be able to see it applied to a real project.

Hence, once you completed the course, you’ll have a very solid understanding of Django and you’ll be able to dive into your own Django projects!

What you’ll learn

  • Learn how to use Python for web development with Django
  • Build real projects and apply what you learned in a full blog website created in the course
  • Choose between the full course or the included course summary to get you started quickly
Table of Contents

Getting Started
1 Introduction
2 What is Django
3 The Course Prerequisites
4 What’s Inside the Course
5 Join Our Learning Community!
6 Getting the Most out of the Course
7 Choose Your Course Path!

Course Setup
8 Module Introduction
9 Installing Python & Django
10 Creating a Django Project
11 Installing an IDE
12 Analyzing the Created Project
13 Starting a Development Server
14 Django Apps
15 Analyzing the Created Project
16 More Advanced Setup Steps
17 Useful Resources & Links

URLs & Views
18 Module Introduction
19 Creating a New Project
20 What are URLs & Views
21 Creating a First View & URL
22 Adding More Views & URLs
23 Dynamic Path Segments & Captured Values
24 Path Converters
25 Adding More Dynamic View Logic
26 Redirects
27 The Reverse Function & Named URLs
28 Returning HTML
29 Practicing URLs, Views & Dynamic View Logic
30 Summary
31 Useful Resources & Links

Templates & Static Files
32 Module Introduction
33 Adding & Registering Templates
34 Rendering Templates
35 Template Language & Variable Interpolation
36 Exercise Solution
37 Filters
38 The Django Visual Studio Code Extension
39 Tags & the for Tag
40 The URL Tag for Dynamic URLs
41 The if Tag for Conditional Content
42 Template Inheritance
43 Exercise Solution
44 Including Partial Template Snippets
45 More on the Django Template Language (DTL)
46 Templates
47 Adding Static Files
48 Adding Global Static Files
49 Adding CSS Styling
50 Building Static URLs Dynamically
51 Summary
52 Useful Resources & Links

Course Project Building a Blog – The Basics
53 Module Introduction
54 Setting Up the Starting Project
55 Planning the Project
56 Adding URLs & Views
57 Adding First Templates
58 Template Content & Static Files
59 Adding Images as Static Files
60 Adding the All Posts Page & Style
61 Linking the Pages
62 Adding the Single Post Page
63 Adding Dummy Data to the Views File
64 Special Template Features & Syntax
65 Adding a Single Post Page
66 Adding a 404 Page
67 Useful Resources & Links

Data & Models
68 Module Introduction
69 Different Kinds of Data
70 Understanding Database Options
71 Understanding SQL
72 Django Models
73 Creating a Django Model with Fields
74 Migrations
75 Inserting Data
76 Getting all Entries
77 Updating Models & Migrations
78 Blank vs Null
79 Updating Data
80 Deleting Data
81 Create Instead of Save
82 Querying & Filtering Data
83 or Conditions
84 Query Performance
85 Bulk Operations
86 Preparing Templates
87 Rendering Queried Data in the Template
88 Rendering the Details Page
89 Model URLs
90 Adding a Slugfield & Overwriting Save
91 Using the Slug & Updating Field Options
92 Aggregation & Ordering
93 Summary
94 Useful Resources & Links

Admin
95 Module Introduction
96 Logging Data Into the Admin Panel
97 Adding Models to the Admin Area
98 Configuring Model Fields
99 Configuring the Admin Settings
100 More Config Options
101 Useful Resources & Links

Relationships
102 Module Introduction
103 Understanding Relationship Types
104 Adding a one-to-many Relation & Migrations
105 Working with Relations in Python Code
106 Cross Model Queries
107 Managing Relations in Admin
108 Adding a one-to-one Relation
109 One-to-one Python Code
110 One-to-one & Admin Config
111 Setting-up many-to-many
112 Using many-to-many in Python
113 Many-to-many in Admin
114 Circular Relations & Lazy Relations
115 Summary
116 Useful Resources & Links

Course Project – Building a Blog Data & Models
117 Module Introduction
118 Planning the Data Models
119 Adding a Post Model
120 Author Model & one-to-many
121 Tag Model many-to-many
122 Registering Models for Admin
123 Migrations & Admin Login
124 Adding Data via Admin
125 Configuring the Admin Panel
126 Fetching Posts for Starting Page
127 All Post & Single Post Pages
128 Using Author & Tags Data
129 Summary
130 Useful Resources & Links

Forms
131 Module Introduction
132 Starting Setup
133 Adding a Dummy Form
134 Get & Post Requests
135 CSRF Protection
136 Handling Form Submission & Extracting Data
137 Manual Form Validation & the Problems with that
138 Using the Django Form Class
139 Validation with Django Forms
140 Customizing the Form Controls
141 Customizing the Rendered HTML
142 Adding Styling
143 Adding More Form Controls
144 Storing Form Data in a Database
145 Introducing Modelforms
146 Configuring the Modelform
147 Saving Data with a Modelform
148 Class Based Views
149 Summary
150 Useful Resources & Links

Class Views
151 Module Introduction
152 Adding Templates
153 TemplateView
154 Using the TemplateView
155 Showing a Detail Template
156 The ListView
157 DetailView
158 When to Use Which View
159 FormView
160 CreateView
161 Useful Resources & Links

File Uploads
162 Module Introduction
163 Starting Setup
164 Making the File Upload Work
165 Storing Uploaded Files Naive Approach
166 Adding a Form with a Filefield
167 Using Models for File Storage
168 Using an Imagefield
169 Using a CreateView
170 Working with the File Field
171 Serving Uploaded Files
172 Summary
173 Useful Resources & Links

Sessions
174 Module Introduction
175 Problem Description
176 What are Sessions
177 Enabling & Configuring Sessions
178 Adding a New View
179 Storing Data in Sessions
180 Which Kind of Data Should be Stored
181 Using Session Data
182 Safely Accessing Session Data
183 Summary
184 Useful Resources & Links

Course Project Building a Blog – Forms, Files & Sessions
185 Module Introduction
186 Adding an Imagefield to the Post Model
187 Serving Uploaded Files
188 Converting Views to Class Based
189 Adding a Comment Model
190 Adding a Comment Form
191 Styling the Comment Form
192 Handling Comment Form Submission
193 Comment Form Validation Styles
194 Outputting Comments
195 Styling the Comments
196 Comment Admin
197 Read Later Starting Setup
198 Managing Read Later via Session
199 Read Later Page & Styling
200 Finishing the Read Later Feature
201 Useful Resources & Links

Deployment
202 Module Introduction
203 Deployment Considerations
204 Which Database
205 Django & Web Servers
206 Serving Static Files
207 Choosing a Hosting Provider
208 Getting Started & Revisiting Settings
209 Collecting Static Files
210 Serving Static Files
211 A Note About Migrations
212 Locking in Dependencies
213 More on Virtual Environments
214 Using Environment Variables
215 Deploying with Elastic Beanstalk
216 SSL & Custom Domains
217 Connecting PostgreSQL
218 Serving Static Files Separately
219 Serving Static Files via S3
220 Moving File Uploads to S3
221 Summary
222 Useful Resources & Links

Optional Django Summary & Quick Introduction
223 Module Introduction
224 What & Why
225 Setup & Analyzing the Project Folder
226 Working with Apps
227 URLs & Views
228 Getting Started with Templates
229 Static Files & First Steps with the Django Template Language
230 Key Django Template Language Features & Tags
231 Using What we Learned
232 Adding a Detail Page
233 Dynamic Paths
234 Dynamic URLs in Templates
235 Using Template Inheritance
236 Includes
237 What is Data
238 Getting Started with Models
239 Using the Admin Panel
240 Querying Data
241 Adding Image Upload
242 Serving & Displaying Images
243 Configuring the Admin Area
244 Setting one-to-many Relations
245 many-to-many Relations
246 More Meetup Fields & Outputting Related Data
247 Creating a Modelform
248 Handling Form Submission
249 More on Form Submission & Validation
250 From Modelform to Form
251 Polishing Organizer Email
252 Optimizing URLs
253 Wrap Up
254 Useful Resources & Links

Bonus
255 Bonus!

Homepage