On Thu, Oct 1, 2009 at 8:47 PM, shacker <shac...@birdhouse.org> wrote:

>
> Found the problem. There were no namespace problems in my template
> tag, but there were (are) in the external app I'm using, which is the
> RSS aggregator used by the djangoproject.com site itself:
>
>
> http://code.djangoproject.com/browser/djangoproject.com/django_website/apps/aggregator
>
> The app is called "aggregator" and it includes  templatetags/
> aggregator.py
>
> So apparently this hasn't bitten the devs of the djangoproject.com
> site, but it bit me!
>
>
That template tags file avoids "from aggregator.models import" and uses
instead:

from django_website.apps.aggregator.models import Feed

That's an alternative to renaming the template tags file, an import that
sufficiently qualifies the duplicated name so as to avoid the problem.

Karen

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