google-app-engine

Does Google Webapp framework for Google App Engine maintain a link to the database?

1) When a script gets data from the database using the db.Model.get_element_by_id("id") method, what id does it refer to, and how can you get it from the database. 2) If you get a result using this method, does that result maintain a link to the database so that any changes to the result are reflected on the database? If not, how would y...

Best practice for handling HTTP HEAD request with Django on App Engine

I'm receiving HEAD requests in my application, and wondering on the best way to handle them. Options are: convert them to GETs, process GET normally, then: strip the body (though I'm not sure how - response.content = '' doesn't seem to do it. it seems app engine auto-strips the body, giving a warning "Dropping unexpected body in respo...

example using memcache with jpa entitymanager on JGAE?

any example on using memcache/general cache with jpa entitymanager on JGAE? or the only way to do it is manually put/set memcache on service layer? ...

eclipse on maven project warning 'DTD or XML schema'

Description Resource Path Location Type No grammar constraints (DTD or XML schema) detected for the document. TEST-net.kindleit.gae.example.server.MessageRepositoryTest.xml /projecttest-gae-example/target/surefire-reports line 1 XML Problem No grammar constraints (DTD or XML schema) detected for the document. appengine-web.xml ...

JPA vs Low Level Datastore on App Engine

I am getting into App Engine development right now with Java and I am wondering what people think about using the low level api instead of JPA? I understand that JPA may make the solutions more portable in the future but I don't anticipate taking my code anywhere else. Is it ok to use the low level api instead of JPA? I'm interested in ...

What are the best practices of the App Engine datastore?

I have developed some applications in Google App Engine but sometimes I have problems to "translate" my rational database mind to datastore objects (most of the time because I don't want to use the Key as ID of the data.) So, if I populate a combo (or any other control) how can I distinguish the uniqueness of the data? Now I'm reading ...

How can I have Google App Engine clear memcache every time a site is deployed?

The title asks it all. The content on the site I'm building wont change very quickly at all and so Memcache could potentially store data for months except for when I put up an update. Is there a way to make it clear the cache every time I deploy the site? I'm using the Python runtime. Update 1 Using jldupont's answer I put the followin...

How to send data from Android mobile devices to the Google App Engine datastore?

I need to write an application that sends data to the Google App Engine from Android. The data that I would like to send can be described by a typical database record. Each record has some integers, strings, dates, etc. I would like to keep the connection details hidden/secured so that someone can't create false data in the datastore,...

GAE,can persist but cannot load(createQuery) entity

1.i able to persist entity, and in _admin , i able to see key, id/name. total 6 results. but why it not show all the property inside my entity class? 2. when i try use createQuery , i cannot load the object. there is no error in the console. the code just stuck afer hitting query.getResultList(); 14:41:31,047 DEBUG [DataNucleus.Persi...

Django and App Engine

I wanted to check the status of running Django on the Google App Engine currently and what the benefits of running django on GAE over simply using Webapp. Django main killer feature, IMHO, is the reuseable apps and middleware. Unfortunately, most current Django apps use models or model forms (django-tags, django-reviews, django-profile...

Which programming skills do I need to have to write an application in Google Application Engine?

I want to use java platform and I don't know what else I need to know about to write apps in google app engine? ...

commit & push to remote git repo via webhook?

I want to commit to a git repo from app-engine via webhooks. I cannot install git on appengine. Possible? I think it should be on GitHub, because they have a browser based text editor which can commit via the browser. E.g. go here and click the edit button. GitHub api docs imply read-only operations which doesn't seem to be true. Also...

Many Custom Domains for AppEngine Instance

For our e-commerce service running on AppEngine we would like to offer the option for customers to run the stores on their custom domains (eg: www.mystore.com instead of www.enstore.com/mystore). From a user perspective, I'd like them to enter the domain name they want to use in their preference screen and tell them how to configure the...

App engine datastore and Java low-level api: fetch multiple entities by its ids

I'm with app engine and using the java low level api, and I want to retrieve a group of entities having its ids. What's the way to do so? I could fetch one by one but there must be a better way. Thanks! ...

Timeout with GAE Java

Hi, I am having some issues with an app I have deployed on GAE. Specifically, I am intermittently running into the DeadlineExceededException where the server is not responding within the 30 seconds required. What is odd is that the code is not overly complex, it should run in milliseconds. My guess is that the delay is in dealing wit...

GAE authenticate to a 3rd party site

I need to authenticate securely to a third party site for a SSL REST api call. I have the API call part working but I want to save the third party credentials in my app engine datastore, or maybe somewhere else? I have no idea how im supposed to do this. The SSL call looks like: credentials = base64.encodestring('%s:%s' % (username, pa...

Sorting problem with the Google App Engine

I am using the following class to store some data: class NewsArticle(db.Model): score = db.FloatProperty(default=0.0) date_scored = db.DateTimeProperty() ... What I need to do is to get those NewsArticle entities that have the top score in some time frame (e.g. get the top scored data entities of today or of last week). I...

Why is urlfetch throwing Download Errors when calling some Google services?

I've noticed that some Google services are blocking requests from App Engine servers, resulting in a urlfetch DownloadError. An example would be a feedproxy.google.com url (http://feedproxy.google.com/~r/blabbermouth/~3/cAk78LX4gJE/news.aspx, for example). This occurs on all the apps I've tried it on, including app IDs I've never used f...

python appengine form-posted utf8 file issue

hi, i am trying to form-post a sql file that consists on many INSERTS, eg. INSERT INTO `TABLE` VALUES ('abcdé', 2759); then i use re.search to parse it and extract the fields to put into my own datastore. The problem is that, although the file contains accented characters (see the e is a é), once uploaded it loses it and either error...

How can I mount a Wicket application at /* in GAE development server?

My Wicket application runs fine on the live Google App Engine at /* <filter-mapping> <filter-name>WicketApplication</filter-name> <url-pattern>/*</url-pattern> </filter-mapping> However this URL pattern does not work on the development server (GAE 1.2.8): a request to http://localhost:8080/ gives this message: HTTP ERROR: 500...