title: How to map two urls to one view?
body: <p>This is my class from models.py:</p>
  
  <pre><code>class Person(models.Model):
      name = models.CharField(max_length=64)
      persnr = models.AutoField(primary_key=True)
  </code></pre>
  
  <p>This is my view:</p>
  
  <pre><code>def show_person(request, persnr):
      pers = get_object_or_404(Person, pk=persnr)
      context={'pers':pers}
      return render(request, 'company/person.html', context)
  </code></pre>
  
  <p>This is my url:</p>
  
  <pre><code>url(r'^show_person/(?P&lt;persnr&gt;\d+)', "company.views.show_person", name='show_person'),
  </code></pre>
  
  <p>How can I get to the same view (show_person) with these two urls:</p>
  
  <pre><code>server/show_person/(persnr)
  
  server/show_person/(name)
  </code></pre>