title: Django “TypeError: list() got an unexpected keyword argument 'id''” error
body: <p>I am trying to redirect to a page I intend to implement as an object's homepage after creation of one.
  views.py</p>
  
  <pre><code>from django.shortcuts import render, get_object_or_404
  from f.models import Post
  
  
  def list(request):
      post = Post.objects.all()
      context = {
          'post': post,
      }
      return render(request, 'list.html', context)
  
  
  def detail(request, id=None):
      Post = get_object_or_404(post, id=id)
      context = {
          'Post': Post,
      }
      return render(request, 'detail.html', context)
  </code></pre>
  
  <p>url.py</p>
  
  <pre><code>urlpatterns = [
      url(r'^$', views.list, name='list'),
      url(r'^(?P&lt;id&gt;[0-9]{1,3})$', views.list, name='detail'),
  ]
  </code></pre>
  
  <p>and my error</p>
  
  <pre><code>Django Version:     1.9.10
  Exception Type:     TypeError
  Exception Value:    
  
  list() got an unexpected keyword argument 'id'
  
  Python Version:     3.5.2
  </code></pre>