Re: [Tutor] import confusion

2009-01-26 Thread Kent Johnson
On Mon, Jan 26, 2009 at 12:31 AM, Marc Tompkins wrote: > Someone will no doubt phrase this better, but let's take a shot... > > 2) "import django" makes the entire django package and all sub-modules > available. You could then refer to django.forms.DecimalField and > django.contrib.auth.Improp

Re: [Tutor] import confusion

2009-01-25 Thread Marc Tompkins
On Sun, Jan 25, 2009 at 9:45 PM, Eric Abrahamsen wrote: > > Thanks for the break-down! I've got a fairly good handle on how to make all > this work correctly, I guess what I'm after is an understand of why the > above produces an error. What's going on in the system's module accounting > that makes

Re: [Tutor] import confusion

2009-01-25 Thread Marc Tompkins
On Sun, Jan 25, 2009 at 8:23 PM, Eric Abrahamsen wrote: > Hi there, > > I'm trying to understand how module imports work, and am seeing some > behavior I don't understand: > > >>> import django > >>> from django import forms > >>> from forms import DecimalField > Traceback (most recent call last):