Reverse for '' with arguments '()' and keyword arguments not found. Django
<p>I have been having trouble with this for a few dayss and havent been able to find any answers. Basically I want the url to be the / as in if its print then I want /print. </p>

<p>I understand that my regex is probably wrong and will need changed, but here is my code.</p>

<p>Myproject/urls.py</p>

<pre><code>url(r'^(?P&lt;pk&gt;)/$', views.page_detail, name='page_detail'),
</code></pre>

<p>It throws the error on line 5
function_list.html</p>

<pre><code>{% extends 'wiki/base.html' %}

{% block content %}
{% for page in pages %}
    &lt;h1&gt;&lt;a href="{% url 'page_detail' pk=page.pk %}"&gt;{{ page.function }}&lt;/a&gt;&lt;/h1&gt;
    &lt;p&gt;{{ page.usage|linebreaksbr }}&lt;/p&gt;
{% endfor %}
{% endblock %}
</code></pre>

<p>views.py</p>

<pre><code>def page_detail(request, pk):
    page = get_object_or_404(Page, pk=pk)
    return render(request, 'wiki/page_detail.html', {'page': page})   
</code></pre>

<p>page_detail </p>

<pre><code>{% extends 'wiki/base.html' %}

{% block content %}
&lt;h1&gt;{{ page.function }}&lt;/h1&gt;
&lt;p&gt;{{ page.usage|linebreaksbr }}&lt;/p&gt;

{% endblock %}
</code></pre>

<p>The specific error is </p>

<pre><code>Reverse for 'page_detail' with arguments '()' and keyword arguments '{'pk': 'print'}' not found. 1 pattern(s) tried: ['page/(?P&lt;pk&gt;)/$']
</code></pre>

<p>if anyone has any ideas or resources for me to look at I would appreciate it.</p>

<p>edit: include page model</p>

<p>models.py</p>

<pre><code>class Page(models.Model):
    function = models.CharField(max_length=100, primary_key=True)
    usage = models.CharField(max_length=200)
    author = models.CharField(max_length=100)
    library = models.CharField(max_length=100)
    parameters = models.TextField()
    returnValues = models.CharField(max_length=100)
    examples = models.TextField()
    notes = models.TextField()
    seeAlso = models.TextField()
</code></pre>