Dear Karen, thanks for your clarification. it clear now. Ok I will try to make the Comment model and see how it code works.
regards, -vierda- On Dec 6, 8:47 am, "Karen Tracey" <[EMAIL PROTECTED]> wrote: > On Fri, Dec 5, 2008 at 4:10 PM, vierda <[EMAIL PROTECTED]> wrote: > > > Dear Karen, > > > thanks for your reply. Actually in my learning I try to follow the > > code which is provide in the book to understand how it works. It > > sounds silly but from above code, I really didn't get what below line > > trying to do : > > > c = comments.Comment(comment=new_comment) > > > somebody kindly help to clarify me, thank you. > > It's creating a Comment. This particular (fictitious) Comment model > apparently has one required argument, comment, which is being set to the > value new_comment that has been passed into the post_comment routine. The > next line saves the created comment to the DB. The real point of the > example, though, is how the session is used to track whether a comment has > been posted using this session yet, and to prevent more than one comment per > session. > > Karen --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---