[google-appengine] how to remove a kind from datastore using python

2012-05-11 Thread ttt www
i create a kind using python :

class zb_news(db.Model):
news_date = db.DateProperty(required=True)
title = db.StringProperty(required=True)
news = db.TextProperty(required=True)

after put some data, i need to change property.
but i don't know how to change property.

now i like remove the kind "zb_news"
what to do? any sample?


please help
thank you very much

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Re: how to remove a kind from datastore using python

2012-05-11 Thread ttt www

On May 12, 4:17 am, Kaan Soral  wrote:
> Easiest: create zb_news_2
> Hard: run zb_news.all().delete() and move on

thanks for your reply
this is what i did. and working now

i cannot access db admin, since i am in China.

i need to remove some kind (table) to clean db.

anybody can help?

:remove kind (table) from datastore

thanks

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.