portfolio_website/portfolio/views.py
def project(request, project_id):
    '''
    View function that displays a single project and its details
    '''

    # Check if project with the given id exists
    try:
        project = Project.objects.get(id=project_id)
    except DoesNotExist:
        raise Http404()

    title = f'{project.name}'
    return render(request, 'all-projects/project.html', {"title":title, "project":project})

    View function that displays a single project and its details
    
View function that displays a single project and its details
View function that displays a single project and its details
def project(request, project_id):
    try:
        project = Project.objects.get(id=project_id)
    except DoesNotExist:
        raise Http404()
    title = f'{project.name}'
    return render(request, 'all-projects/project.html', {"title":title, "project":project})
def project ( request , project_id ) : try : project = Project . objects . get ( id = project_id ) except DoesNotExist : raise Http404 ( ) title = f'{project.name}' return render ( request , 'all-projects/project.html' , { "title" : title , "project" : project } )
View function that displays a single project and its details
View function that displays a single project and its details
'''
    View function that displays a single project and its details
    ''' # Check if project with the given id exists
request
project_id