views.py file
def details(request, id):
post = Posts.objects.get(id=id)
context = {
'post': post
}
return render(request, 'posts/details.html', context)
urls.py file
from django.urls import path
from . import views
urlpatterns = [
path('', views.index, name='index')
path('details/<int:id>/', views.details, name='details')
]
path ('details //', views.details, name = 'details')
^
Ошибка синтаксиса: неверный синтаксис