title: TypeError: got an unexpected keyword argument 'entry'
body: <p>I am in the middle of creating an encyclopedia project. On the home page is a list of entries and I want all the entries to be linked to their entry page.</p>
  <p>Currently when I click on the link to an entry on the homepage, in this case the entry is called CSS, this is the error I get:</p>
  <blockquote>
  <p>TypeError at /wiki/CSS/
  entry() got an unexpected keyword argument 'entry'
  Request Method: GET
  Request URL:    <a href="http://127.0.0.1:8000/wiki/CSS/" rel="nofollow noreferrer">http://127.0.0.1:8000/wiki/CSS/</a></p>
  </blockquote>
  <p><strong>views.py</strong></p>
  <pre><code>def css(request):
      return render(request, &quot;entries/css.html&quot;, {
          &quot;css_entry&quot;: util.get_entry(&quot;css&quot;)
      })
  
  def entry(request):
      return render(request, entry, &quot;encyclopedia/index.html&quot;, {
          &quot;entry&quot;: util.get_entry({&quot;entry&quot;})
  })
  </code></pre>
  <p><strong>urls.py</strong></p>
  <pre><code>urlpatterns = [
      path(&quot;&quot;, views.index, name=&quot;index&quot;),
      path(&quot;css/&quot;, views.css, name=&quot;css&quot;),
      path(&quot;&lt;str:entry&gt;/&quot;, views.entry, name=&quot;entry&quot;)
  ]
  </code></pre>
  <p><strong>index.html</strong></p>
  <pre><code>&lt;ul&gt;
   {% for entry in entries %}
      &lt;li&gt;&lt;a href = &quot;{% url 'entry' entry %}&quot;&gt;{{ entry }}&lt;/a&gt;&lt;/li&gt;
   {% endfor %}
  &lt;/ul&gt;
  </code></pre>
  <p>The frustrating thing is if I enter into the browser: <a href="http://127.0.0.1:8000/wiki/CSS/" rel="nofollow noreferrer">http://127.0.0.1:8000/wiki/CSS/</a> it works and the page loads fine but not when I click the link from the homepage. Plus, if I remove the entry argument leaving it as {% url 'entry' %} then the homepage stops working and I get the following error:</p>
  <blockquote>
  <p>NoReverseMatch at /wiki/
  Reverse for 'CSS' not found. 'CSS' is not a valid view function or pattern name.
  Request Method: GET
  Request URL:    <a href="http://127.0.0.1:8000/wiki/" rel="nofollow noreferrer">http://127.0.0.1:8000/wiki/</a>
  Django Version: 3.1.1
  Exception Type: NoReverseMatch</p>
  </blockquote>