Re: Problem in Django App Part 1 Tutorial

2010-06-16 Thread !...@!!!
PO On Jun 16, 6:55 pm, "!...@!!!" wrote: > P > > On Jun 16, 6:49 pm, "!...@!!!" wrote: > > > > > Thanks Thierry, but problem solved!...:) -- 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...@google

Re: Problem in Django App Part 1 Tutorial

2010-06-16 Thread !...@!!!
P On Jun 16, 6:49 pm, "!...@!!!" wrote: > Thanks Thierry, but problem solved!...:) -- 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 t

Re: Problem in Django App Part 1 Tutorial

2010-06-16 Thread !...@!!!
Thanks Thierry, but problem solved!...:) -- 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

Re: Problem in Django App Part 1 Tutorial

2010-06-16 Thread Thierry
I noticed you are importing your project name, are you invoking your "python manage.py shell" from within your project folder? If you are, try the following: project_folder/python manage.py shell >>> from polls.models import Poll >>> dir(Poll) The above should show you that "was_published_today"

Re: Problem in Django App Part 1 Tutorial

2010-06-16 Thread !...@!!!
Never mind I solved the problem! For all of you with the same problem: it appears that the first time that you use or import (i'm not really sure) a class in the python shell, it's source-code file is compiled automatically in a ".pyc" file, in the same directory where the source-code file is locat

Re: Problem in Django App Part 1 Tutorial

2010-06-16 Thread !...@!!!
Never mind I solved the problem! For all of you with the same problem: it appears that the first time that you use or import (i'm not really sure) a class in the python shell, it's source-code file is compiled automatically in a ".pyc" file, in the same directory where the source-code file is locat

Problem in Django App Part 1 Tutorial

2010-06-16 Thread !...@!!!
Hello, I am a Python newbie and this is my first time I use Django and Python. I was reading the Django App tutorial Part 1 and got stuck in a place. I execute these statements in the Python Shell: >>> from mysite.polls.models import Poll, Choice >>> import datetime >>> p = Poll(question="What's