[google-appengine] Django template how use ndb KeyProperty ?

2013-08-20 Thread
I replace DB with NDB, but template use NDB KeyProperty no work,

old DB models

class Jword(db.Model):
fjword = db.StringProperty(required=True) #单词
fpronunciation = db.StringProperty() #读音
fcword = db.StringProperty() #中文词义

class Nword(db.Model):
fjword=db.ReferenceProperty(Jword)
fdate=db.DateProperty(auto_now=True)
flevnum=db.IntegerProperty()

NDB models

class Jword(ndb.Model):
fjword = ndb.StringProperty(required=True) #单词
fpronunciation = ndb.StringProperty() #读音
fcword = ndb.StringProperty() #中文词义

class Nword(ndb.Model):
fjword=ndb.KeyProperty(kind=Jword)
fdate=ndb.DateProperty(auto_now=True)
flevnum=ndb.IntegerProperty()

template code

{% for nword in newword %}
  {# Each nword is a newword model object. #}
  {{ nword.full_name|upper }}

tr
 tdinput type=checkbox name=pitem value={{nword.key}}
class=selrow//td
 td{{nword.fjword.fjword}}/td
 td{{nword.fjword.fpronunciation}}/td
 td{{nword.fjword.fcword}}/td
 td{{nword.flevnum}}/td
 td{{nword.fdate}}/td
/tr
{% endfor %}
-- 

{{nword.fjword.fjword}}  DB disply well, but NDB not display.

Thank.

-
Sunny

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [google-appengine] how to porting code

2013-04-16 Thread
可能,但明显要改代码。
在 2013-4-15 下午4:58, leizouh...@gmail.com写道:

I  am a coder in China.I wrote a program with google API.And i
 deployed it on google app engine.But i suddenly realized that users can't
 vist google app engine in China except that they use a VPN.So i want to
 porting the code to other app engine.Is it possible?Is it difficult?

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




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




Re: [google-appengine] Re: How can I access GAE application?

2012-12-27 Thread
internet block?


2012/12/27 star_movie_02 iloveblack@gmail.com

 Can anybody help me? My project ran smoothly until yesterday. Now I cannot
 access my project anymore even though Dashboard is Ok and Logs with no
 errors. Does GAE change anything?

 Vào 20:45:42 UTC+7 Thứ tư, ngày 26 tháng mười hai năm 2012, star_movie_02
 đã viết:

 Dear all,
 I have been using GAE for three months. But within today, I could not
 access any projects on GAE. I don't know why and I am worry about this
 because they are important to me. Can anyone help me to answer what's
 wrong is that? And when will it revive?
 Thanks

  --
 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/-/7Jz0W3FP4DsJ.

 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.




-- 

西安——深圳——上海
http://szxatjp.blog.163.com/


-- 
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.



Re: [google-appengine] gae 登陆不了了。

2012-10-29 Thread
你是指appspot.com上的程序吗? 用HTTPS可以登录.

2012/10/27 tutu jin l...@jintutu.com


  --
 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/-/ZMYqaAUGRkAJ.
 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.




-- 

西安——深圳——上海
http://szxatjp.blog.163.com/


-- 
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.



Re: [google-appengine] gae阵亡了!

2012-10-29 Thread
是出问题了, 已经恢复.

2012/10/26 杜若 des...@gmail.com

 怎么回事,gae本身出毛病了吗

 --
 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/-/WIJlkBlsA7gJ.
 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.




-- 

西安――深圳――上海
http://szxatjp.blog.163.com/


-- 
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.



Re: [google-appengine] Re: 1.7.2 Pre-release SDKs Available

2012-10-15 Thread
Good!

2012/10/16 cws1989 cws1...@yahoo.com.hk

 *Wha*t* is the meaning of 'Search API now has a string maximum length
 limit of 2000 characters'? Is that* mean search API can only index
 text/string up to 2000 characters? What will happen when I feed a string
 with 2001 characters in Java SDK? throw exception or search API will ignore
 characters since index 2000? I've visited the 'Overview' and 'Java
 Reference' and see
 https://developers.google.com/appengine/docs/java/javadoc/com/google/appengine/api/search/checkers/FieldChecker#MAXIMUM_TEXT_LENGTHit
  stated 1048576 bytes, this means it is updated from 1048576
 to 2000? Thanks.

 --
 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/-/nqMvL6SdPFYJ.

 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.




-- 

西安——深圳——上海
http://szxatjp.blog.163.com/


-- 
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.



Re: [google-appengine] Help. My app is down

2012-07-19 Thread
I can access buzzjourney.appspot.com

2012/7/17 buzzjourney l...@buzzjourney.com

 Hi,

 I am unable to access my app (buzzjourney.appspot.com).
 All I get is the Server Error message.
 I am unable to deploy (keeps waiting until it gives up).
 Please assist.
 Is anyone else experiencing this issue? The system status page does not
 show any issues.

 --
 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/-/tOSQIdTRnlwJ.
 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.




-- 

西安——深圳——上海


-- 
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] Project from python 2.5 upgrade to 2.7, datastore convert to 'High Replication' , all cron jobs not work.

2012-07-17 Thread
hi,
My project  use the django, The use of  'Duplicate Application Settings'
tool ,
 from python 2.5 upgrade to 2.7,
datastored from 'Master/Salve' convert to 'High Replication' .
 New project is run succeed,
but all the cron job to fail.  cron url is normal, but logs display cron
job on time run fail.

Any idea? thank!



西安——深圳——上海


-- 
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.