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.

Setting up URLs in your Django project

Setting up URLs in your Django project

From the course: Building a Personal Portfolio with Django

Start my 1-month free trial

Setting up URLs in your Django project

- [Tutor] We're now going to walk through how URL paths work in Django. And the basic idea behind this is whenever someone visits a website, there's the base name of the website, in our case, is just a string of letters here. But there's always something after the slash, right? Some websites slash Hello, about info, something like that. Like on our website. If I wanted to know more information about nick. What if it was the name of the website slash nick? And we wanted to see something there. Well, right now if I try to go to our website slash, nick Django gives us back this page not found this 404 error. Saying, Hey, I have no idea what you're looking for, you gave me slash, nick. I have nothing to show back for that. And that's we're going to change here, we're going to go through the whole URL path routing to eventually send back some information saying, This is what you're looking for. So let's go ahead and move into Atom. So that we can fix this, the place where we're going to…

Contents