Hi,
I have installed everything I need to get Django working on my Windows
XP box with Apache and MySQL. Everything seemed to be going well until
I tried the instructions in tutorial01.txt.
At the point where it says:
Once you're in the shell, explore the database API::
# Import the model classes we just wrote.
>>> from mysite.polls.models import Poll, Choice
# No polls are in the system yet.
>>> Poll.objects.all()
[]
I tried this and got:
13/05/2007> python manage.py shell
Python 2.5.1 (r251:54863, Apr 18 2007, 08:51:08) [MSC v.1310 32 bit
(Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
(InteractiveConsole)
>>> from foo.polls.models import Poll, Choice
>>> Poll.objects.all
<bound method Manager.all of <django.db.models.manager.Manager object
at 0x014CE2D0>>
The only difference between my project and the one in the tutorial is
that I called it "foo" rather than "mysite".
Any help gratefully received.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---