title: Django URL pattern to include a #
body: <p>I'm having issues getting a URL pattern to work.</p>
  
  <p>The URL is in the format of the following:</p>
  
  <pre><code>/API#access_token=&lt;string&gt;&amp;expires_in=&lt;timestamp&gt;
  </code></pre>
  
  <p>I can't change the #access_token=&amp;expires_in= part unfortunately, as this is outside of my control, and I simply have to just make my side of the code work.</p>
  
  <p>I've tried a number of different patterns, a number of which are outlined below. This is my first Django project, and any advice, and pointers would be much appreciated. </p>
  
  <pre><code>url(r'^API#access_token=(?P&lt;token_info&gt;\w+)&amp;expires_in(?P&lt;time&gt;\d+)$'
  url(r'^API#(?P&lt;tokens&gt;\w+)$'
  url(r'^API/#(?P&lt;tokens&gt;\w+)&amp;(?P&lt;expiration&gt;\d+)$'
  </code></pre>