title: TypeError: cannot unpack non-iterable int object in Django views function
body: <p>Following is my code in URL.py, views.py and HTML page. However, it returns me the error: TypeError: cannot unpack non-iterable int object.</p>
  
  <pre><code>urlpatterns = [
      path('', views.blogs_home, name='blogs'),
      path('&lt;int:id&gt;', views.single_blog, name='detailed_view'),
  </code></pre>
  
  <p>]</p>
  
  <p>I am trying to capture the id of posts blogs in the list view to get the blog object from the database with id query. Following is my view code.</p>
  
  <pre><code>def single_blog(request,id):
     blog_single = Blogs.objects.get(id)
     context = {'blog_single': blog_single}
     template = 'blog_home.html'
  
     return render(request, template, context)
  </code></pre>
  
  <p>However, as I mentioned, it returns the above error.</p>
  
  <p>Could someone explain what I am doing wrong</p>