On 15 jan, 22:57, Greg <gregplaysgui...@gmail.com> wrote:
> > Or just read the code - that's what I did FWIW !-)
>
> Tried that. In fact I'd actually tried the get_nodes_by_type method
> and in hindsight I realise it failed for the reason below, but I
> didn't realise that at the time.
>
> > > 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.
>
> > Mmm ??? Why so ? What happens if you don't ?
>
> It returns an empty list, ie doesn't find any matching nodes.

Nice to know - but I really wonder why it works that way (I guess I'll
have to look at this by myself). Perhaps would it be useful to
document that somewhere (djangosnippets or the wiki ?)

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

Reply via email to