Django: Getting Started Transcripts
Chapter: Posting Data
Lecture: Registering named URLs
Login or
purchase this course
to watch this video and the rest of the course contents.
0:00
Here's a review URLs file that I built previously, you've seen most of this kind of code before. I'm registering the URL for the view.
0:10
Remember that it takes a book as an argument and nothing special has to be done for the whole post thing, it's all the same.
0:17
The only thing that's a little new here is the name argument. This is how you name a URL. Remember calling the redirect function in the view.
0:25
Well, the name you pass it is this name, easy enough. Seeing as this is a new URLs file, I have to add it to the global declaration in Alexandra.URLs.
0:46
All done.