I have not run the code in the tutorial but it looks fine to me. The error
you have received leads me to think you do not have the variable assigned
for 'guestbook_name'
guestbook_name=self.request.get('guestbook_name')
this will give you 'None' or the actual name if it has been passed.
The error occurred during the function call for guestbook_key()
So make sure you have that function in your code:
def guestbook_key(guestbook_name=None):
"""Constructs a Datastore key for a Guestbook entity with guestbook_name."""
return db.Key.from_path('Guestbook', guestbook_name or 'default_guestbook')
And if all of that is in your code then I am not sure what else it could be
without seeing all the code.
--
You received this message because you are subscribed to the Google Groups
"Google App Engine" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/google-appengine/-/-MkrffZhdFEJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-appengine?hl=en.