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 views in Django

Creating views in Django

From the course: Building a Personal Portfolio with Django

Start my 1-month free trial

Creating views in Django

- [Nick Walter] So it's nice whenever we hit that URL that we can get the end to show up here, but that's not ultimately what we're looking for. We wanna say if we go to jobs one that we wanna see the particulars of job one shown here on a special part of the website, not just the homepage showing all the jobs. Just that one particular job. So in this video, we're gonna walk through how we can grab that one particular job from the database and get it to show up here for the user of the website. So, let's go ahead and move back into Adam. and remember, we had made this new detail function here and we're printing out the job ID. What we're going to do is use that job ID to grab a particular job from the database. And django has an awesome function to be able to make this to work, after we have this import where we say, import render, do a comma and then after that, this is one big long string. So stay with me here get, underscore object underscore, or underscore 404. And essentially…

Contents