1π
β
A few things:
- question.id in the url tag is the value passed to the url pattern via the view. The template is specified in the view, but this value ensures a unique object (question) in the context.
- Correct
- The name of the view is βvoteβ not question_id. This is shown in the url pattern (views.vote)
- You can pass as many values as needed via the url tag in order to match up with your pattern. Just ensure these values are made available via your view.
π€Patrick Beeson
Source:stackexchange.com