Skip to content

Rendring Data to Templates  #14

Description

@bermaoi

Hi
i have problem with passing data from view to single-project.html

`this is the code on single-project.html
<
{% extends 'main.html' %}
{% block content %}

hello

\\\\ i have add this to know if page loading good and it is loaded

{{project.title}}


{{project.description}}

{% endblock %}>

the View code

def project(request,pk):
projectObj = None
for i in projectslist:
if i['id'] == pk:
projectObj = i
return render(request,'projects/single-project.html', {'projectObj':projectObj})

i'd lik to know what is wrong

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions