title: django: invalid syntax path('details/<int:id>/', views.details, name='details')
body: <h1>views.py file</h1>
  
  <pre><code>def details(request, id):
  post = Posts.objects.get(id=id)
  
  context = {
      'post': post
  }
  
  return render(request, 'posts/details.html', context) 
  </code></pre>
  
  <h1>urls.py file</h1>
  
  <pre><code>from django.urls import path
  from . import views
  
  urlpatterns = [
     path('', views.index, name='index')
     path('details/&lt;int:id&gt;/', views.details, name='details')
  ]
  </code></pre>
  
  <p>path('details//', views.details, name='details')
         ^
  SyntaxError: invalid syntax</p>