p.save not working in tutorial

2011-04-17 Thread xpdx
Hi all!

A newbee here.

A little problem going through the tutorial. Hoping somebody can
help.

OS X 10.6.6 with included python version 2.6.1
Downloaded and installed Django from http://www.djangoproject.com/download/
verison 3.1

started tutorial- everything including creation of tables seemed to go
fine.

get to the point where is asks me to

>>> p

>>> p.save
>
>>> Poll.objects.all()
[]

Nothing.

If I do:
>python manage.py dbshell

sqlite> .tables
auth_group  auth_user_user_permissions
auth_group_permissions  django_content_type
auth_messagedjango_session
auth_permission django_site
auth_user   polls_choice
auth_user_groupspolls_poll

I can query the tables and return rows on some of them(including
auth_user), but not the polls_poll or polls_choice. They are empty.

What am I doing wrong? Authentication? I'm clueless

-xpdx

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@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.



Re: p.save not working in tutorial

2011-04-19 Thread xpdx
DOH!

I'll try that.

Thanks!

On Apr 17, 2:12 pm, Karen Tracey  wrote:
> On Sun, Apr 17, 2011 at 5:06 PM, xpdx  wrote:
>
> > >>> p
> > 
> > >>> p.save
> > >
> > >>> Poll.objects.all()
> > []
>
> p.save just shows you that p has an attribute named save, and what it is.
> You need parentheses after the save to actually call the method:
>
> >>> p.save()
>
> Karen
> --http://tracey.org/kmt/

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@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.