1) please provide your model Poll
2) are you run syncdb ?
Many thanks,

Serge


+380 636150445
skype: skhohlov


2013/2/6 Avnesh Shakya <avnesh.n...@gmail.com>:
>
> Here i want to explore database API.... but it's generating error......
> C:\mysite>python manage.py shell
> Python 2.7.3 (default, Apr 10 2012, 23:31:26) [MSC v.1500 32 bit (Intel)] on
> win32
> Type "help", "copyright", "credits" or "license" for more information.
> (InteractiveConsole)
>>>> from polls.models import Poll,Choice
>>>> Poll.objects.all()
> []
>>>> import django
>>>> from django.utils import timezone
>>>> p= Poll(question="what's new?",pub_date= timezone.now())
> Traceback (most recent call last):
>   File "<console>", line 1, in <module>
>   File "C:\Python27\lib\site-packages\django\db\models\base.py", line 367,
> in __init__
>     raise TypeError("'%s' is an invalid keyword argument for this function"
> % kwargs.keys()[0])
> TypeError: 'pub_date' is an invalid keyword argument for this function
>>>>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to