Re: Relative imports in custom template tag collections seem to look in the wrong place.

2009-06-15 Thread greatlemer
On Jun 15, 10:47 pm, Alex Gaynor wrote: > On Mon, Jun 15, 2009 at 4:39 PM, greatlemer wrote: > > > > > > > Hi everyone, > > > I was creating some custom template tags and attempted to import my > > models through the following import at the top of the file: > > > from ..models import * > > > Unfo

Re: Relative imports in custom template tag collections seem to look in the wrong place.

2009-06-15 Thread Alex Gaynor
On Mon, Jun 15, 2009 at 4:39 PM, greatlemer wrote: > > Hi everyone, > > I was creating some custom template tags and attempted to import my > models through the following import at the top of the file: > > from ..models import * > > Unfortunately this seems to be attempting to import from django.m

Relative imports in custom template tag collections seem to look in the wrong place.

2009-06-15 Thread greatlemer
Hi everyone, I was creating some custom template tags and attempted to import my models through the following import at the top of the file: from ..models import * Unfortunately this seems to be attempting to import from django.models (which doesn't exist) rather than myapp.models and therefore