Mô tả

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!


Bạn sẽ học được gì

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

Yêu cầu

  • Basic Python and web development knowledge (HTML/ CSS) is required
  • NO prior Django experience is required at all

Nội dung khoá học

17 sections

Getting Started

7 lectures
Introduction
02:05
What is Django?
04:58
The Course Prerequisites
01:54
What's Inside the Course?
03:14
Join Our Learning Community!
00:23
Getting the Most out of the Course
03:05
Choose Your Course Path!
02:41

Course Setup

10 lectures
Module Introduction
01:05
Installing Python & Django
06:25
Creating a Django Project
02:33
Installing an IDE
07:54
Analyzing the Created Project
04:48
Starting a Development Server
05:05
Django Apps
08:19
Analyzing the Created Project
02:27
More Advanced Setup Steps
00:26
Useful Resources & Links
00:01

URLs & Views

14 lectures
Module Introduction
02:45
Creating a New Project
05:34
What are URLs & Views?
05:42
Creating a First View & URL
13:27
Adding More Views & URLs
03:11
Dynamic Path Segments & Captured Values
09:35
Path Converters
05:16
Adding More Dynamic View Logic
05:20
Redirects
08:48
The Reverse Function & Named URLs
10:31
Returning HTML
05:48
Practicing URLs, Views & Dynamic View Logic
09:37
Summary
04:43
Useful Resources & Links
00:07

Templates & Static Files

21 lectures
Module Introduction
03:55
Adding & Registering Templates
14:55
Rendering Templates
04:16
Template Language & Variable Interpolation
05:38
Exercise Solution
01:56
Filters
04:19
The Django Visual Studio Code Extension
02:29
Tags & the "for" Tag
08:02
The URL Tag for Dynamic URLs
06:10
The "if" Tag for Conditional Content
05:16
Template Inheritance
09:38
Exercise Solution
01:31
Including Partial Template Snippets
09:45
More on the Django Template Language (DTL)
00:42
404 Templates
07:08
Adding Static Files
09:13
Adding Global Static Files
06:24
Adding CSS Styling
15:55
Building Static URLs Dynamically
00:25
Summary
04:48
Useful Resources & Links
00:07

Course Project: Building a Blog - The Basics

15 lectures
Module Introduction
01:13
Setting Up the Starting Project
03:45
Planning the Project
04:26
Adding URLs & Views
11:16
Adding First Templates
08:10
Template Content & Static Files
16:11
Adding Images as Static Files
02:58
Adding the "All Posts" Page & Style
10:32
Linking the Pages
04:16
Adding the "Single Post" Page
05:39
Adding Dummy Data to the "Views" File
04:09
Special Template Features & Syntax
11:26
Adding a Single Post Page
08:44
Adding a 404 Page
01:57
Useful Resources & Links
00:05

Data & Models

27 lectures
Module Introduction
02:55
Different Kinds of Data
06:56
Understanding Database Options
06:15
Understanding SQL
06:38
Django Models
01:02
Creating a Django Model with Fields
09:44
Migrations
06:58
Inserting Data
04:35
Getting all Entries
01:52
Updating Models & Migrations
12:17
Blank vs Null
02:42
Updating Data
05:49
Deleting Data
01:17
Create Instead of Save
03:07
Querying & Filtering Data
07:43
"or" Conditions
04:02
Query Performance
05:43
Bulk Operations
00:13
Preparing Templates
07:10
Rendering Queried Data in the Template
02:59
Rendering the Details Page
09:38
Model URLs
04:41
Adding a Slugfield & Overwriting Save
09:04
Using the Slug & Updating Field Options
06:05
Aggregation & Ordering
07:13
Summary
03:29
Useful Resources & Links
00:07

Admin

7 lectures
Module Introduction
02:14
Logging Data Into the Admin Panel
05:28
Adding Models to the Admin Area
03:32
Configuring Model Fields
03:03
Configuring the Admin Settings
06:28
More Config Options
05:04
Useful Resources & Links
00:05

Relationships

15 lectures
Module Introduction
01:52
Understanding Relationship Types
03:04
Adding a one-to-many Relation & Migrations
09:02
Working with Relations in Python Code
06:29
Cross Model Queries
08:24
Managing Relations in Admin
05:06
Adding a one-to-one Relation
06:42
One-to-one Python Code
04:54
One-to-one & Admin Config
05:23
Setting-up many-to-many
04:44
Using many-to-many in Python
05:18
Many-to-many in Admin
02:20
Circular Relations & Lazy Relations
00:58
Summary
02:37
Useful Resources & Links
00:07

Course Project - Building a Blog: Data & Models

14 lectures
Module Introduction
01:57
Planning the Data Models
04:03
Adding a Post Model
07:36
Author Model & one-to-many
03:06
Tag Model many-to-many
01:22
Registering Models for Admin
01:15
Migrations & Admin Login
03:13
Adding Data via Admin
06:02
Configuring the Admin Panel
05:36
Fetching Posts for Starting Page
06:37
All Post & Single Post Pages
04:50
Using Author & Tags Data
08:34
Summary
01:40
Useful Resources & Links
00:07

Forms

20 lectures
Module Introduction
01:53
Starting Setup
04:52
Adding a Dummy Form
04:40
Get & Post Requests
09:59
CSRF Protection
05:52
Handling Form Submission & Extracting Data
09:50
Manual Form Validation & the Problems with "that"
06:09
Using the Django Form Class
11:04
Validation with Django Forms
04:12
Customizing the Form Controls
05:00
Customizing the Rendered HTML
05:05
Adding Styling
09:08
Adding More Form Controls
07:37
Storing Form Data in a Database
08:37
Introducing Modelforms
06:37
Configuring the Modelform
03:47
Saving Data with a Modelform
04:28
Class Based Views
08:41
Summary
05:53
Useful Resources & Links
00:07

Class Views

11 lectures
Module Introduction
01:07
Adding Templates
04:21
TemplateView
07:56
Using the TemplateView
05:03
Showing a Detail Template
05:06
The ListView
06:55
DetailView
03:48
When to Use Which View
02:22
FormView
06:42
CreateView
04:47
Useful Resources & Links
00:05

File Uploads

12 lectures
Module Introduction
01:21
Starting Setup
01:24
Making the File Upload Work
07:30
Storing Uploaded Files Naive Approach
04:39
Adding a Form with a Filefield
04:38
Using Models for File Storage
08:44
Using an Imagefield
02:19
Using a CreateView
02:34
Working with the File Field
05:10
Serving Uploaded Files
06:50
Summary
01:53
Useful Resources & Links
00:05

Sessions

11 lectures
Module Introduction
00:38
Problem Description
02:01
What are Sessions?
03:41
Enabling & Configuring Sessions
02:15
Adding a New View
04:31
Storing Data in Sessions
04:03
Which Kind of Data Should be Stored
02:33
Using Session Data
05:33
Safely Accessing Session Data
01:12
Summary
01:32
Useful Resources & Links
00:07

Course Project: Building a Blog - Forms, Files & Sessions

17 lectures
Module Introduction
02:05
Adding an Imagefield to the Post Model
06:31
Serving Uploaded Files
06:23
Converting Views to Class Based
14:03
Adding a Comment Model
05:15
Adding a Comment Form
06:01
Styling the Comment Form
07:15
Handling Comment Form Submission
14:06
Comment Form Validation Styles
09:39
Outputting Comments
05:03
Styling the Comments
03:13
Comment Admin
03:44
Read Later Starting Setup
07:09
Managing Read Later via Session
13:52
Read Later Page & Styling
06:30
Finishing the Read Later Feature
06:21
Useful Resources & Links
00:05

Deployment

21 lectures
Module Introduction
01:29
Deployment Considerations
05:00
Which Database
03:52
Django & Web Servers
04:33
Serving Static Files
05:43
Choosing a Hosting Provider
02:42
Getting Started & Revisiting Settings
07:00
Collecting Static Files
07:35
Serving Static Files
01:52
A Note About Migrations
01:13
Locking in Dependencies
05:48
More on Virtual Environments
00:10
Using Environment Variables
05:03
Deploying with Elastic Beanstalk
10:42
SSL & Custom Domains
02:57
Connecting PostgreSQL
18:58
Serving Static Files Separately
08:51
Serving Static Files via S3
17:38
Moving File Uploads to S3
08:26
Summary
01:28
Useful Resources & Links
00:07

Optional: Django Summary & Quick Introduction

32 lectures
Module Introduction
03:07
What & Why?
06:00
Setup & Analyzing the Project Folder
07:03
Working with Apps
04:49
URLs & Views
12:19
Getting Started with Templates
06:54
Static Files & First Steps with the Django Template Language
08:25
Key Django Template Language Features & Tags
09:39
Using What we Learned
08:53
Adding a Detail Page
10:44
Dynamic Paths
08:12
Dynamic URLs in Templates
06:49
Using Template Inheritance
12:45
Includes
04:59
What is Data?
03:43
Getting Started with Models
11:12
Using the Admin Panel
04:41
Querying Data
07:51
Adding Image Upload
11:38
Serving & Displaying Images
07:02
Configuring the Admin Area
08:26
Setting one-to-many Relations
09:51
many-to-many Relations
09:45
More Meetup Fields & Outputting Related Data
07:38
Creating a Modelform
08:21
Handling Form Submission
10:11
More on Form Submission & Validation
10:46
From Modelform to Form
09:17
Polishing Organizer Email
08:26
Optimizing URLs
03:59
Wrap Up
01:31
Useful Resources & Links
00:05

Bonus

2 lectures
Course Roundup
00:55
Bonus!
00:06

Đánh giá của học viên

Chưa có đánh giá
Course Rating
5
0%
4
0%
3
0%
2
0%
1
0%

Bình luận khách hàng

Viết Bình Luận

Bạn đánh giá khoá học này thế nào?

image

Đăng ký get khoá học Udemy - Unica - Gitiho giá chỉ 50k!

Get khoá học giá rẻ ngay trước khi bị fix.