title: Reverse for 'update' with arguments '(1,)' not found. 1 pattern(s) tried: ['Manager/update/$']
body: <p>After creating edit button in home.html, I've been getting this error all the time and have no idea how to resolve it.</p>
  
  <p><strong>views.py</strong></p>
  
  <pre><code>def siteUpdate(request, id_):
  site=get_object_or_404(Site_data,id=id_)
  if request.POST=="POST":
      form=SiteForm(request.POST,instance=site)
      if form.is_valid():
          form.log_name=request.user
          form.save()
          return redirect('Manager:home.html')
  else:
      form=SiteForm(instance=site)
      site = {
  
          'form':form
      }
      return render(request,'Manager/siteform.html',sie)
  </code></pre>
  
  <p><strong>models.py</strong></p>
  
  <pre><code>class Site_data(models.Model):
  log_name = models.ForeignKey(User, on_delete=models.CASCADE, default=1)
  site_name = models.CharField(max_length=200)
  site_url = models.CharField(max_length=200)
  site_login = models.CharField(max_length=200, unique=True)
  password = models.CharField(max_length=200)
  </code></pre>
  
  <p><strong>urls.py</strong></p>
  
  <pre><code>app_name='Manager'
  
  urlpatterns = [
  
  path('', views.home, name='home'),
  path('create/', views.siteCreate, name='create'),
  path('update/', views.siteUpdate, name='update')
  
  ]
  </code></pre>
  
  <p><strong>home.html</strong></p>
  
  <pre><code>{% for site in sites %}
  &lt;td&gt;{{site.site_name}}&lt;/td&gt;
  &lt;td&gt;{{site.site_url}}&lt;/td&gt;
  &lt;td&gt;{{site.site_login}}&lt;/td&gt;
  &lt;td&gt;{{site.site_password}}&lt;/td&gt;
  &lt;td&gt;&lt;a href="{% url 'Manager:update' site.id %}"&gt;&lt;button 
  type="button"&gt;Edit&lt;/button&gt;&lt;/a&gt;&lt;/td&gt;
  {% endfor %}
  </code></pre>
  
  <p>Thanks for help.</p>