From the course: Building a Personal Portfolio with Django
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Creating model objects via the admin panel in Django
From the course: Building a Personal Portfolio with Django
Creating model objects via the admin panel in Django
- [Instructor] So we've come to an exciting point in our project. We did a lot of work to get our database up and running, get it connected with our Django project. We're now gonna be creating our very first job object. So make sure you're here on the admin site. Remember that's just the localhost:8000/admin. Once you're logged in with your super-user, we're gonna move into Jobs here, if you just click on that. And we're gonna hit this ADD JOB button. So essentially what this is doing is saying, "I want to add a new job into the database." And it's asking us for the two properties. It's saying, "I need an image and I need a summary." Remember, we had said this is maxed out as 200 and these eventually will get saved to place called images. Now, if we're gonna make a job, you have to have some sort of image to show here, and so the whole idea with your portfolio here is you're showing past jobs that you worked out or side projects that you were working on, so you'll want to include…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
Creating the models in Django5m 9s
-
(Locked)
Postgres setup for Django5m 27s
-
(Locked)
Connecting your Django project to Postgres4m 52s
-
(Locked)
Make Django migrations and migrate3m 56s
-
(Locked)
Setting up an admin panel in Django4m 20s
-
(Locked)
Creating model objects via the admin panel in Django3m 48s
-
(Locked)
Pulling objects from the database in Django5m 52s
-
-
-
-