title: Django URL dispatcher example - pass url from view to another
body: <p>Anyone have a quick url dispatcher example? I've looked at the Django documentation but I find that there isn't a complete example that shows you how everything is working in the views.</p>
  
  <p>Specifically, I'm trying to pass the "url" from one view to another. For example, I am trying to make a holiday website: if a button in "available holidays" view called "europe" is clicked, I want to go to www.example.com/selected/europe, where all european holidays are displayed
  while if a button in the available holidays view called "Australia" is clicked, I want to go to www.example.com/selected/australia where similarly australian holidays are displayed.</p>
  
  <p>So far, in url.py I have: </p>
  
  <pre><code>(r'^selected/(?P&lt;location&gt;\w+)/$', 'app.views.selected'),
  </code></pre>
  
  <p>in views.py I have:</p>
  
  <pre><code>def selected(request, location)
  </code></pre>
  
  <p>I'm not sure where to go from there. 
  Also, how are things going to move from the "available holidays" view to the "selected" view...</p>