Hello Kenny, As Bill mentioned in this threads parallel thread, you are prolly just entring the python shell like thiis
$ python Instead try this from you projects directory (django_site\mysite) $ python manage.py shell As bill mentioned all kindsa magical cool stuff happens... fdiro...@4b0x [~/Code/django-b-cool/mysite $] python manage.py shell Python 2.6.1 (r261:67515, Jul 7 2009, 23:51:51) [GCC 4.2.1 (Apple Inc. build 5646)] on darwin Type "help", "copyright", "credits" or "license" for more information. (InteractiveConsole) >>> dir(django.core) Traceback (most recent call last): File "<console>", line 1, in <module> NameError: name 'django' is not defined >>> import django >>> dir(django.core) ['__builtins__', '__doc__', '__file__', '__name__', '__package__', '__path__', 'cache', 'exceptions', 'files', 'management', 'signals', 'urlresolvers'] Thnx Bill for that info :] On Dec 2, 2009, at 11:37 AM, Kenny Meyer wrote: > 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 -- 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.