Django: Getting Started Course

Django: Getting Started Course

English | MP4 | AVC 2560×1440 | AAC 44KHz 2ch | 198 Lessons (5h 58m) | 1.24 GB

Django is one of the most popular web frameworks for coding in Python. It includes libraries for: templating HTML content, URL routing, views, a robust Object Relational Model (ORM) for mapping classes to database queries, HTML form management, a built-in administrative tool, and much more. This course teaches you how to build your first Django project and guides you through the key parts of the library.

Application Development Approach
This course is constructed around a project called Alexandria, a virtual library. Each chapter covers a new Django concept, but it also adds a feature to the application. As you proceed through the course you will not only learn more about Django but also be building features and tests as you would for developing real world software.

What will you learn in this course?
While building our Django app, you will:

  • Set up a new project
  • Understand Django’s project structure
  • How to use the Django database ORM, including: common fields, writing queries, Foreign Keys and related objects, and light-weight migrations
  • Create function-based views: the code that responds to the browser
  • Turn data to HTML with HTML Templates
  • User management: Creating users, managing logins, password resets, and the
  • Built-in admin for users
  • Data management: Loading / saving database fixtures
  • Mapping URLs and URL patters to function-based views with URL routing
  • HTML Forms: GET vs POST, submitting data to server, and using the forms library
  • Considerations when deploying Django
  • Third party libraries: A quick tour of popular libraries and how to install them
Table of Contents

1 Chapter concepts
2 Your first Django app
3 Why choose Django-
4 Who uses Django-
5 Student prerequisites
6 Minimum library versions
7 Visualizing how Django works
8 Mapping URLs to code
9 HTML template engine
10 Database models
11 Built-in user management
12 Django Admin
13 Django’s pluggable architecture
14 Topics covered throughout this course

15 Intro
16 Installing django
17 Your first django app
18 Apps vs projects
19 Creating a Django app
20 Add a new app to Django
21 Creating a view method
22 Connecting a URL to a view
23 Why test Django views-
24 Writing a ‘say hello’ view test
25 Chapter review

26 Chapter concepts
27 New app for templates
28 Your first Django template
29 Rendering the template
30 Registering new ‘home’ URLs
31 Test the template in the browser
32 Common template tags
33 Common template filters
34 Django output types
35 Configuring static content
36 Favicons and static redirects
37 Introducing layout pages
38 Bootstrap bootcamp
39 Creating the shared layout page
40 Creating the About page
41 Viewing our shiny new About page
42 Building the home page with layout
43 Unit testing HTML templates
44 Chapter review

45 Introducing Django’s ORM
46 Creating the Author model
47 Creating the Book model
48 Automatic `created` and `updated` dates on the model
49 Initializing the database
50 The Django REPL
51 Explore the query manager in the Django REPL
52 Using ‘.objects.get()’ for access by key
53 More advanced queries with ‘.filter()’
54 Improved debug info for books
55 Comparison queries such as greater than
56 Exploring the resulting database
57 Introducing data loading fixtures
58 Exporting data with ‘dumpdata’
59 Associating data fixtures with a Django app
60 Returning database results in a view
61 Different database back-ends- Sqlite, Postgres, etc
62 Testing Django ORM code
63 Test setup
64 Your first Django ORM test
65 Calling a view in test with the test client
66 Running the ‘stringify’ test
67 Running all tests
68 There’s more to the ORM
69 Chapter review

70 Admin intro
71 Django users
72 Logging into the Admin
73 Modifying users in the Admin
74 Creating Admin views for your models
75 Customizing the display fields in the Admin
76 Add computed fields to ‘ModelAdmin’ classes
77 Adding and deleting Books in the Admin
78 Filtering records in the Admin
79 Improving the Author display in filter list
80 Model object metadata
81 Referencing Admin URLs
82 Improving the Author model’s list display
83 Testing with the Admin
84 Setting up an Admin model test
85 Writing an Admin model test
86 There is more depth in the Admin

87 Chapter concepts
88 Create a user via the Admin
89 Authentication vs authorization
90 People app- an app with users
91 Authenticated profile details view
92 Adding the profile HTML template
93 Register profile URL patterns
94 Viewing the profile pages
95 Verifying login required checks
96 Authorization templates
97 Setting update Django contrib auth
98 Login template
99 Where to go after login
100 Creating a nav bar
101 Testing login
102 Changing passwords
103 Password changed success
104 Django and email
105 Reset email with console output config
106 Email contents for reset email
107 Password reset done page
108 Reset confirm HTML
109 Reset success HTML
110 Add forgot password to login
111 Branded error screens
112 Customizing the user model
113 Add profile to user object
114 Registering a user-created signal callback
115 Adding the user profile to Django admin
116 Demo- user testing
117 Chapter review

118 Post introduction
119 Field validators and model constraints
120 Adding a ‘ReviewModel’ with field validation
121 Adding constraints to the ‘ReviewModel’
122 Writing an Admin class for the ‘ReviewModel’
123 Link to the user’s reviews in the Django Admin
124 Configuring PyCharm with Django’s dev server
125 Demo- ‘ReviewModel’ in Django Admin
126 Add a view for a book
127 HTTP GET and POST methods
128 Building a ‘ModelForm’ based on the ‘ReviewModel’
129 Writing a view that fills review forms
130 Registering named URLs
131 Creating the review book template
132 Demo- Writing a review
133 Replacing hard-coded URLs with named ones
134 Testing Django forms
135 Reviewing the chapter

136 Intro to web uploads
137 Uploading images using forms
138 Adding an ‘ImageField’ and configuring media files
139 Making the development server host media files
140 Creating an upload directory and migrating DB changes
141 Using the Django Admin to upload an author’s picture
142 Server-side filenames
143 Writing an upload view
144 Url configuration for the upload view
145 Upload view template
146 Demo- Image upload form
147 The trouble with user uploads
148 Testing an upload view
149 Chapter review

150 Intro to commands
151 Management commands provided by Django
152 Structure of a management command
153 Your first management command
154 Running the ‘authors’ command
155 Writing management commands with arguments
156 Running the ‘book’ command
157 Testing management commands
158 Chapter review

159 Intro to migrations
160 An initial migration script
161 Migration and the database
162 Adding a column to the ‘Song’ model
163 A second migration script
164 Migrating to a specific point including backwards
165 Django’s migrations table
166 More management commands
167 Squashing migrations together
168 Chapter review

169 Intro to deployment
170 Deployment considerations
171 Parts of a web page are served differently
172 Managing static files
173 Protecting media files
174 Key and secret management
175 Hosting example- Opalstack
176 Hosting example- Heroku
177 Chapter review

178 Intro to the libraries
179 Installing third party libraries
180 Django Admin styling with Grappelli
181 Grappelli in action
182 REST APIs with Django REST Framework
183 Writing DRF code
184 DRF browser view
185 Django Debug Toolbar
186 Using the Debug Toolbar

187 Congrats
188 New projects and their structure
189 Mapping URLs
190 View functions
191 Template engine
192 Data object models
193 User management
194 Forms and uploads
195 Management commands
196 Migration and deployment
197 Third party libraries
198 Conclusion and contact info

Homepage