Sathya
Sathya

Reputation: 1086

Create does not work in GAE Datastore viewer

When I try to create some entities I don't see the option to input fields. I just see the SaveEntity button.

enter image description here

However I can view all the existing entities.

enter image description here

What is very strange is - there is another entity called VideoEntity for which the create did not work yesterday but works today.

Can somebody help me with this seemingly unpredictable tool ?

Regards, Sathya

Upvotes: 0

Views: 259

Answers (2)

Paul Collingwood
Paul Collingwood

Reputation: 9116

Writing a simple interface to the data-store to allow you to edit/create models is probably the best thing to do in this case. You know what they contain so you can adjust your interface accordingly, rather then waiting for the admin interface to "catch up" as Gwyn notes.

I believe that there are some property types that are impossible to add via the admin interface that you are using so you'll probably get to the point sooner rather then later of creating a custom interface.

The admin datastore view is good for quickly checking out the contents of the datastore, but ever tried paging through 100's of entries? Not fun.

Upvotes: 1

Gwyn Howell
Gwyn Howell

Reputation: 5424

i think the console knows what properties each entity has based on existing data, rather then your models. and the data is only updated periodically. when did you upload your app? maybe waiting a few hours will give the console time to update.

alternatively, you could use the remote api to add your entities, or write a small snippet and upload such as ...

VideoStatsEntity(app='home', ip='116.89.52.67', params='tag=20130210').put()

Upvotes: 1

Related Questions