title: Use anchored urls in django (anchored by the id of http objects)
body: <p>My level in front-end development is pretty low.</p>
  
  <p>Nevertheless, I want to implement the very wide-spread behaviour of having several parts anchored in one single page instead of several separate pages, and refer to these parts in the url. </p>
  
  <p>So instead of having <code>mysite.com/how_to_walk</code> and <code>mysite.com/how_to_run</code> as two different pages and templates, I would like to have one page <code>mysite.com/how_to_do_stuff</code> and then depending on if you want to <code>#walk</code> or <code>#run</code>, refer to the html headers with the id field as suffixes of the url.</p>
  
  <p>I don't really know how to do it with django. I'd like to create only one url dispatcher that - I guess - will look like that: </p>
  
  <pre><code>url(r'^how_to_stuff/#(?P&lt;partId&gt;[-\w]*)', views.how_to, name='how_to')
  </code></pre>
  
  <p>...and then I have to create a simple view, but how to refer to the id in the render() call, I have no idea.</p>