thanks.. i have added my polls.models file

On Wed, Feb 6, 2013 at 2:20 PM, Sergiy Khohlov <[email protected]> wrote:

> 1) please provide your model Poll
> 2) are you run syncdb ?
> Many thanks,
>
> Serge
>
>
> +380 636150445
> skype: skhohlov
>
>
> 2013/2/6 Avnesh Shakya <[email protected]>:
> >
> > 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 [email protected].
> > To post to this group, send email to [email protected].
> > 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 [email protected].
> To post to this group, send email to [email protected].
> 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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Attachment: models.py
Description: Binary data

Reply via email to