If you can't use the Datastore Viewer to create an entity,
create an entity when you request a special url

user = User(UserName="aa",Password="pass",FirstName="Ronn", LastName="Ross")
user.put()

2009/4/4 Ronn Ross <[email protected]>:
> I have a simple model like so:
> class User(db.Model):
> UserName = db.StringProperty(required=True)
> Password = db.StringProperty(required=True)
> FirstName = db.StringProperty(required=True)
> LastName = db.StringProperty(required=True)
> I would like there to be at least one default user in this table while
> testing. How do I add test data to a class model?
> Dankon
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to