On Wed, 2 Dec 2009 11:19:41 -0500
Frank DiRocco <ofang...@gmail.com> wrote:

> How about trying to look at whats available for django... mine says
> this
> 
>  >>> import django
>  >>> dir(django)
> ['VERSION', '__builtins__', '__doc__', '__file__', '__name__',  
> '__package__', '__path__', 'conf', 'contrib', 'core', 'db',  
> 'dispatch', 'forms', 'get_version', 'http', 'middleware',
> 'shortcuts', 'template', 'utils', 'views']
>  >>> dir(django.core)
> ['__builtins__', '__doc__', '__file__', '__name__', '__package__',  
> '__path__', 'cache', 'exceptions', 'files', 'management', 'signals',  
> 'urlresolvers']
> 
> 
> On Dec 2, 2009, at 11:14 AM, Kenny Meyer wrote:
> 
> > Hi guys,
> >
> > I have some strange behaviour in my interactive python shell, when
> > trying to browse Django modules...
> >
> > Example:
> >
> >>>> import django
> >>>> dir(django.core)
> > AttributeError: 'module' object has no attribute 'core'
> >
> >>>> import django.core
> >>>> dir(django.core)
> > ['__builtins__', '__doc__', '__file__', '__name__', '__package__',
> > '__path__']
> >
> > Can anyone, please, explain me this strange (to me) behaviour?
> >
> > Regards,
> > Kenny
> >
> > --------------------------------------------------------------------
> >  .'  `.    knny [d0t] myer [at] gmail [d0t] com [42!]
> >  |a_a  |   http://kenny.paraguayinfos.de | gpg key ID: 0x00F56BA1B2
> >  \<_)__/   --------------------------------------------------------
> >  /(   )\   Everything should be made as simple as possible, but not
> > |\`> < /\                        simpler.
> > \_|=='|_/                                        -- Albert Einstein
> 
> --
> 
> You received this message because you are subscribed to the Google
> Groups "Django users" group. To post to this group, send email to
> django-us...@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.
> 
> 

Hi Frank,

Well that's strange... I don't get similar output, but see it yourself:

>>> import django
>>> dir(django)
['VERSION', '__builtins__', '__doc__', '__file__', '__name__',
'__package__', '__path__', 'get_version']

I'm running Ubuntu 9.10 and installed django with `aptitude` named
`python-django`.

Regards,
Kenny

Attachment: signature.asc
Description: PGP signature

Reply via email to