1
00:00:05,530 --> 00:00:10,010
Welcome back, everyone, to this section of the course on Django models and databases.

2
00:00:11,110 --> 00:00:14,380
Let's quickly revisit our simple model of how jingle works.

3
00:00:15,310 --> 00:00:20,920
Remember, we want to eventually connect a user browser to some sort of data that's stored in a database.

4
00:00:21,280 --> 00:00:26,800
And we've already learned about templates and organizing views along with URL routing and maybe any

5
00:00:26,800 --> 00:00:31,240
additional application logic that you can connect to your view with a Python script.

6
00:00:31,660 --> 00:00:37,600
What this section is going to focus on is the connection to the database, and this is where Django

7
00:00:37,600 --> 00:00:38,550
really shines.

8
00:00:38,560 --> 00:00:45,520
It has this ability to use models that is a specific Python class that's imported from the Django library,

9
00:00:45,790 --> 00:00:48,370
which allows us to directly interact with the database.

10
00:00:49,440 --> 00:00:54,990
So the fact that jingo models allow us to interact with the database means we don't need to worry about

11
00:00:54,990 --> 00:00:58,650
having to remember or write complex sequel based queries.

12
00:00:58,830 --> 00:01:04,470
Instead, we're simply going to work with Python and Django to have key interactions of a database typically

13
00:01:04,470 --> 00:01:08,700
known as crud, which is create, read, update and delete.

14
00:01:09,060 --> 00:01:12,060
So that means we can create new tables and information in a database.

15
00:01:12,240 --> 00:01:14,910
We can read that information to serve it back to the users.

16
00:01:15,210 --> 00:01:19,440
If the user wants to update the information, we can go back and update it, and then we can also remove

17
00:01:19,440 --> 00:01:20,820
or delete any information.

18
00:01:22,570 --> 00:01:26,770
So again, in this section will be exploring how to store, retrieve, update and delete data from a

19
00:01:26,770 --> 00:01:31,240
school based database using jingles built in model tools and functionality.

20
00:01:32,870 --> 00:01:37,940
So we'll talk about things like a general overview of databases, including school versus no school.

21
00:01:38,330 --> 00:01:42,650
We'll talk about models and databases and how they actually interact and connect, and then we'll jump

22
00:01:42,650 --> 00:01:44,040
over to actually coding this out.

23
00:01:44,060 --> 00:01:48,530
That means creating models, creating fields, how to run migrations had actually performed the data

24
00:01:48,530 --> 00:01:53,660
interactions we just talked about create, read, update, delete and then as well as database and template

25
00:01:53,660 --> 00:01:54,380
interaction.

26
00:01:54,620 --> 00:01:59,000
How do we actually get that information all the way forward to the template so the user can interact

27
00:01:59,000 --> 00:01:59,750
with it themselves?

28
00:02:00,590 --> 00:02:01,970
All right, let's get started.

29
00:02:02,030 --> 00:02:02,990
I'll see you at the next lecture.

