1
00:00:05,540 --> 00:00:09,290
Welcome back, everyone, to this section on views, routing and URLs.

2
00:00:10,390 --> 00:00:15,520
We now understand how to create a jingle project and create a Django app within that project.

3
00:00:15,880 --> 00:00:20,320
We've also explored just a little bit about how to actually create a view and then route them through

4
00:00:20,320 --> 00:00:23,590
where you are well at the very end of the previous section.

5
00:00:23,980 --> 00:00:29,770
What this section is going to do is dive a lot deeper into that relationship of views, their functionality

6
00:00:29,950 --> 00:00:33,790
and connecting them to route to a particular page on your website through the URLs.

7
00:00:34,950 --> 00:00:39,390
So in this section, we'll have a very quick review of a project and app creation, then we'll talk

8
00:00:39,390 --> 00:00:41,360
about the basics of routing and URLs.

9
00:00:41,700 --> 00:00:46,560
Talk about the basics of function based views and then we'll dive in a little deeper with dynamic views,

10
00:00:46,560 --> 00:00:52,830
adding in some view, logic adding in redirects for a force, talking about naming your URLs inside

11
00:00:52,890 --> 00:00:55,620
the actual rendering and then the reverse functionality.

12
00:00:55,830 --> 00:00:59,460
And at the very end, we'll talk about connecting these views to templates.

13
00:00:59,910 --> 00:01:01,350
So a couple of things to keep in mind.

14
00:01:02,490 --> 00:01:07,380
In this series of lectures won't really be connecting viewers to HTML template files.

15
00:01:07,740 --> 00:01:14,040
We're just going to focus on how views connect to your roots first before passing information to a template.

16
00:01:14,370 --> 00:01:18,150
Realistically, won't really be doing this for web sites instead.

17
00:01:18,420 --> 00:01:22,200
Pretty much all the views are going to render some sort of HTML template.

18
00:01:22,500 --> 00:01:28,320
So in this particular series of lectures, we're really just focusing on Vue functionality and understanding

19
00:01:28,320 --> 00:01:34,320
the Django functionality that connects a route to a particular view later on in the next section.

20
00:01:34,530 --> 00:01:38,940
We're going to cover the relationship between templates and views and a lot more detail, so keep that

21
00:01:38,940 --> 00:01:39,300
in mind.

22
00:01:39,480 --> 00:01:44,430
We will be introducing templates at the very end of this section, but focus a lot more on it in the

23
00:01:44,430 --> 00:01:45,120
next section.

24
00:01:45,960 --> 00:01:51,510
The other thing to keep in mind is that this particular section only discusses function based Django

25
00:01:51,510 --> 00:01:51,990
views.

26
00:01:52,350 --> 00:01:58,620
Later on, we will switch gears to class based views, but those require us to learn about models first.

27
00:01:58,860 --> 00:02:02,940
So it's kind of come up next is we'll learn about templates in the next section.

28
00:02:03,000 --> 00:02:07,800
Then after that, we'll learn about models and then we'll pass on everything we've learned and connect

29
00:02:07,800 --> 00:02:11,490
it together through class based views, which is a very powerful tool.

30
00:02:11,700 --> 00:02:14,550
But there's still some more stuff we need to learn about before we jump to them.

31
00:02:14,820 --> 00:02:15,720
So keep that in mind.

32
00:02:15,930 --> 00:02:17,130
This is function based.

33
00:02:17,130 --> 00:02:21,060
Django views later on will graduate, so to speak, to class based views.

34
00:02:21,780 --> 00:02:23,130
OK, let's get started.

35
00:02:23,220 --> 00:02:24,210
I'll see in the next lecture.

