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
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