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.
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.
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.
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.
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.
Our application need to find as_view method. This searching process has its rules and 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 get method is responsible for react in GET request. The code of this method is explained here.
The get context data method is another one involved in preparing the answer for request and that's why we should understand its code.
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.
We will take all classes and mixins at one place and see how they interact between themselves.
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.
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.
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.