title: NoReverseMatch: Reverse for 'deleted' with no arguments not found. - Django
body: <p>I'm a new face to Django so please be considerate to if ever my problem is something stupid. So I have been practicing Django, and currently making a CRUD, however I've run into problems with tegards to NoReverseMatch, I went through answers in stackoverflow but still I couldn't find where I went wrong. Can you help me a bit guys? Actually it was working, when I resetted the DB, somehow it had the error, maybe i moved something or whatever unlucky thing i did. I've been at it for 3 hours actually. Just this error. So please help me:</p>
  
  <p>The traceback says that the NoReverseMatch is on the following url:</p>
  
  <pre><code>&lt;a href="{%url 'deleted'%}"&gt;Delete&lt;/a&gt;
  </code></pre>
  
  <p>which I properly partnered and connected with the following in my urls.py.</p>
  
  <pre><code>url(r'^delete/(?P&lt;pk&gt;\d+)/', Delete.as_view(), name="deleted"),
  </code></pre>
  
  <p>Here's the gist of the code:</p>
  
  <p><strong>deleteupdate/urls.py</strong> (Delete and Update are from models imported to the file)</p>
  
  <pre><code>urlpatterns = [
  
      url(r'^', views.list, name='list'),
  
      url(r'^delete/(?P&lt;pk&gt;\d+)/', Delete.as_view(), name="deleted"),
  
      url(r'^update/(?P&lt;pk&gt;\d+)/', Update.as_view(), name="updated"),
  
      url(r'^(?P&lt;student_id&gt;)/', views.detail, name='detail'),
  
  ]
  </code></pre>
  
  <p><strong>main/urls.py</strong></p>
  
  <pre><code>urlpatterns = [
      url(r'^$', include('index.urls')),
      url(r'^admin/', admin.site.urls),
      url(r'^list/', include('deleteupdate.urls')),
  
  ]
  </code></pre>
  
  <p><strong>Here's the HTML:</strong></p>
  
  <pre><code>{% if all_students %}
  
  &lt;ul&gt;
      {% for user in all_users %}
      &lt;li&gt;&lt;a href="/list/{{ user.id }}"&gt;&lt;/a&gt;
  
  
  
  &lt;button type="button"&gt;
  &lt;a href="{%url 'deleted'%}"&gt;Delete&lt;/a&gt;
  &lt;/button&gt;
  
  
  &lt;button type="button"&gt;
  &lt;a href='{% url 'updated' %}'&gt;Update&lt;/a&gt;
  &lt;/button&gt;
  {% endfor%}
  &lt;/ul&gt;
  
  {% else %}
  &lt;h3&gt;Users is empty&lt;/h3&gt;
  {% endif %}
  </code></pre>
  
  <p>What am I doing wrong? I think I have followed every advice I could find, but yeah it still gives me the error. Any help is appreciated. Thank you very much!</p>
  
  <p><strong>Here's the error btw:</strong></p>
  
  <blockquote>
    <p>NoReverseMatch at /list/</p>
    
    <p>Reverse for 'deleted' with no arguments not found. 1 pattern(s) tried:
    ['list/delete/(?P\d+)/']</p>
  </blockquote>