Hi,

I would like to see the context from a custom tag using the {% debug
%} tag, but it's not displaying.

I'm rendering a template with the following view code:

       return render_to_response("index.html", {
            "who": {'name': 'Greg', 'city':'Smallville'}

In the template, I have a custom tag to get entries, and then a for
tag to display entries:

    {% get_entries as entries %}

    {% for entry in entries %}
        <h2>{{ entry.title }}</h2>
        <p>{{ entry.body_html }}</p>
    {% endfor %}

    {% debug %}

The template properly loops through the entries and displays the title
and body, so I know that the custom tag is working.

The debug tag shows values for the  "who" context, but only shows an
empty list for the entries:

         'entries': [, ], 'who': {'city': 'Smallville', 'name':
'Greg'}} {'BaseHTTPServer': , 'Cookie': , ' etc, etc

Any idea why the entries context  is empty?

Thanks - Greg F.




--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to