Great - thanks. I should have come here earlier!

One other slightly tricky thing that I just figured out - when
importing your Node you need to import it from django.templatetags,
not myproject.myapp.templatetags. So the following works:

    from django.templatetags.myapp_tags import MyAppNode
    from django.template.loader import get_template

    t = get_template("editable_pages/test.html")
    print t.nodelist.get_nodes_by_type(MyAppNode)

Cheers,
Greg
--~--~---------~--~----~------------~-------~--~----~
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