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.
URL paths with parameters
From the course: Building a Personal Portfolio with Django
URL paths with parameters
- [Instructor] Let's go ahead and put the finishing touches on this Django project by first addressing this job detail page. It's still showing a picture of yours truly. We want it to actually show the job image all blown up nice and big like this. So in order to make this change, let's go ahead and move over into Atom. Instead of just saying we want static nick.jpg, instead, we want information from the job. Now, this is a good learning opportunity here. Because, when we're getting to the job image and eventually it's URL, we aren't gonna use the curly bracket and percentage sides. Instead, we're gonna be working with the two curly brackets. And you might be wondering, well, when do you use one and when do you use the other? You're going to use the double curly brackets anytime you're referencing information that has been passed to that HTML template. Inside of our views.py, this information, this jobs dictionary that we pass forward in the singular job that we pass forward. This is…
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.