Hello,
I am using templates with django. I am having a problem where the Context is not being rendered. The meta_k is null. The meta_description is not.
t = get_template('projects.html')
html = t.render(Context({
'completed': completed,
'current':current,
'description': sp.description,
'project_title':sp.name,
'img':images,
'meta_desc': sp.meta_description,
'meta_k:': sp.meta_keywords
}))
I can start the server in debug mode in eclipse and So I know sp.meta_keywords is not null. Here is where I call the code in projects.html:
{% block meta_keywords %}<br>
{% if meta_k %}<br>
{{ meta_k }}<br>
{% else %}<br>
Venkat, Rao, engineer, inventor, entrepreneur, projects, blue dart, control systems, labview<br>
{% endif %}<br>
{% endblock %}
This defaults to the else when I know meta_k should not be null. The complete code can be found here on Google Code.
What am I doing wrong?