Remodel datastore schema-GAE

42 views
Skip to first unread message

Abhishek Ghosh

unread,
Jun 7, 2016, 6:52:38 PM6/7/16
to Google App Engine
Is it possible to remodel the models in google app engine? I am tryinh to add new models and I just can't do it.

Need help urgently.

TIA

Abhishek Ghosh

unread,
Jun 7, 2016, 6:54:09 PM6/7/16
to Google App Engine

Nicholas (Google Cloud Support)

unread,
Jun 8, 2016, 9:29:03 AM6/8/16
to Google App Engine
Thanks for sharing your questions here.  I'm not sure I understand what you are trying to accomplish.  If you are trying to add new models (as in ndb.Model classes), I could only suggest adding new Python classes to the models.py of that GitHub repository and re-publishing.  Something like the following:
class Report(ndb.Model):
  created
= ndb.DateTimeProperty(auto_now_add=True)
  reporter
= ndb.KeyProperty(kind=User)
  flag
= ndb.StringProperty(required=True)

If this is not what you are trying to achieve, please provide more information about the code that is failing, what file needs to be changed or what error is received.
Reply all
Reply to author
Forward
0 new messages