Django GCBV - Fully understanding of TemplateView.
4.3 (6 ratings)
Instead of using a simple lifetime average, Udemy calculates a course's star rating by considering a number of different factors such as the number of ratings, the age of ratings, and the likelihood of fraudulent ratings.
1,655 students enrolled
Wishlisted Wishlist

Please confirm that you want to add Django GCBV - Fully understanding of TemplateView. to your Wishlist.

Add to Wishlist

Django GCBV - Fully understanding of TemplateView.

Become comfortable with TemplateView by fully uderstanding how exactly it works.
4.3 (6 ratings)
Instead of using a simple lifetime average, Udemy calculates a course's star rating by considering a number of different factors such as the number of ratings, the age of ratings, and the likelihood of fraudulent ratings.
1,655 students enrolled
Created by Rafal Szymanski
Last updated 9/2017
Price: Free
  • 1.5 hours on-demand video
  • 2 Articles
  • Full lifetime access
  • Access on mobile and TV
  • Certificate of Completion
What Will I Learn?
  • use TemplateView properly in django projects,
  • describe all parts of the receiveing http request, preparing an answer and sending the responce process,
  • point and describe all classes and mixins TemplateView inherits from,
  • explain how TemplateView uses object oriented programming,
  • understand each line of all methods TemplateView use or inherits from,
  • override get_context_data method correctly.
View Curriculum
  • A computer with an internet connection.
  • Basic knowledge of Django - student should know the purpose of urls file, what views are for and how they work generally.
  • Basic knowledge of Python - student should know what is python dictionary and how to access and manipulate its items, student should know a bit how classes are built, what inheritance is and what object oriented programming idea is.

Django is easy. When you know it. It's not your fault if you can't get it. It can be hard to understand how i.e. Django GCBV works when nobody show it to you. Showing not just telling is important to help you get the concept. You should know that TemplateView uses View object and few mixins. You should know how they do almost all work for TemplateView. You should know all methods and attributes being used in the process. You should know how to override them. This knowledge gives you confidence. You need to be comfortable with what you do to be valuable programmer for others. You don't want to be scared of any question about TempleteView anymore. You don't want to feel like beginner in it anymore. Only in-depth understanding gives you that.

This course shows you the big picture of usage of TemplateView. It's also showed and explained from what TemplateView inherits and why. What exactly do View and all mixins do for TemplateView is also explained. Everything in step by step, line by line, word by word style. These course let you see how code works not just hear about it.

"To see it" is the main value of this course.

Who is the target audience?
  • Django Beginners who want to know why TemplateView is not just two lines of code.
  • Students who are not comfortable with using Django GCBV because they don't know exactly what is going on behind the scene.
  • This course is not for intermediate programmers. They should know it all.
Students Who Viewed This Course Also Viewed
Curriculum For This Course
14 Lectures
2 Lectures 02:47
About the author.

About the course.
The concept of TemplateView.
3 Lectures 25:39

We start with the idea of two simple web pages. They look almost the same because lots of web pages look almost the same. This starting point helps us to understand similarities and differences between simple web pages.

Two simple web pages.

We can split code of simple web pages in two part part. The part of code which is the same for many simple web pages can be kind of base. We will try to understand the concept of this base and meet the TemplateView class. 

Base View.

Simple web pages has some differences between themselves. The part of the code that take care of it is just one method and we will try to understand how it works.

The get_template_names().
The View - how we launch views and how The View helps us.
4 Lectures 20:22

We'll see that our view is called from url settings by calling its as_view method. Where this method came from is explained in this lecture.

The as_view().

Our application need to find as_view method. This searching process has its rules and order.  

The searching order.

The View is main class for all views classes. We will meet this class and will try to understand how it works for TemplateView class.

The View.

The get method is responsible for react in GET request. The code of this method is explained here.

The get().
Methods TemplateView uses.
4 Lectures 43:27

The get context data method is another one involved in preparing the answer for request and that's why we should understand its code.

The get_context_data().

This method is responsible for creating and sending an "answer" for request. We'll see how it takes what other methods brings and how it creates response.

The render_to_response().

We will take all classes and mixins at one place and see how they interact between themselves.

Classes and Mixins together.

The get context data method let us to put extra data to our template and view by overriding it. This lecture shows basic example why and how to override this method.

Overriding get_context_data().
The source of code.
1 Lecture 06:27

Many previous lectures have shown part of code in details. How do we know exactly how this code looks like is explained in this lecture.

Sources of code.
About the Instructor
Rafal Szymanski
4.3 Average rating
4 Reviews
1,655 Students
1 Course
Trying to teach Django in "show not just tell" style.

I provide specialized services and forecasts for petrol companies for 17 years. Started to learn python to automate and accelerate few things in my work 5 years ago. Then I discovered the beauty of logic and abstraction of Python and truly fell in love with programming. I found learning and working with Django is pure joy. 

I've read dozens of books, seen countless tutorials and courses, have read almost entire Django documentation several times but got stuck a million times with the real code. The "A ha!" or "click" moments came always, but often after a long and painful time. Then I always felt it was so simple, why it could not be explained in a simple way? I discovered that the best way to understand something would be if someone showed it to me or drew it, rather than just talked about it. Most of the sources I've learned programming from were based on written or spoken words, which was often not enough for me to understand the subject. Even the video courses I've watched were mostly about seeing the window full of code and hearing a speaker explaining how this code works, but I could not understand it often. I usually had the impression that the tutorial, course, or book show mainly that the author is great at programming, but I received superficial knowledge only, which did not allow me to program freely at all. I often thought I was not smart enough to learn to program and create web applications. At these times, I remembered that I used to think the same way last time, but always been able to solve the problem in the end. When your kid can not count it's not her or his fault. It's teacher's fault and the teaching method. Now I know that learning to program is as hard as teaching it.

There is no reason for anyone to experience the moments of doubt as I was experiencing. There is no reason why anyone would think that she or he is not smart enough to learn to program. That's why I want to help at least a few people avoid such situations and I made the first video course in which I mainly show how to program and how the code works. Sometimes it is enough to change the teaching method. Learning to code can be much easier when someone SHOWS US EXACTLY how it works and what to do.