google-app-engine

Google App Engine: Production versus Development Settings

How do you setup a settings file? One is for your local development server and another set of setting values for when you upload to Google App Engine? For example, I would like to set up a settings file where I store the Absolute Root URL. ...

Python Django: Handling URL with Google App Engine - Post then Get

I have something like this set up: class CategoryPage (webapp.RequestHandler): def get(self): ** DO SOMETHING HERE ** def post(self): ** DO SOMETHING HERE ** ** RENDER THE SAME AS get(self) The question is, after I process the posted data, how would I be able to display the same information as the get(self) function? ...

List of non-datastore types in AppEngine?

I'm building an AppEngine model class. I need a simple list of tuples: class MyTuple(object): field1 = "string" field2 = 3 class MyModel(db.Model): the_list = db.ListProperty(MyTuple) This does not work, since AppEngine does not accept MyTuple as a valid field. Solutions I can think of: Make MyTuple extend db.Model. But does...

Problem using datanucleus enhancer in a maven google app engine project

I'm having a problem setting up datanucleus enhancer to use with a google app engine project. If I use the datanucleus eclipse pluggin everything goes well, but in my maven project I get a strange conflicting version error. My POM has these datanucleus references: <dependency> <groupId>org.datanucleus</groupId> <artifactId>data...

Google App Engine self.redirect post

I have a form that POSTs information to one of my handlers. My handler verifies the information and then needs to POST this information to a third party AND redirect the user to that page. Example of the class ExampleHandler(BaseRequestHandler): """DocString here... """ def post(self): day = int(self.request.get('day')) ...

What is the value set for X-Forwarded-For header by Google App Engine URL Fetch ?

Documentation says (http://code.google.com/appengine/docs/java/urlfetch/overview.html#Request_Headers): These headers are set to accurate values by App Engine, as appropriate Does the value for X-Forwarded-For included some identity of the gae application? ...

Is there free wiki sourcecode that will run on the google app engine?

I found the sample code cccwiki which is good, but I would like a wiki that keeps tracks of all revisions to the pages and lets users show diffs and revert to previous versions. ...

Debugging Google App Engine's SDC - What does USER_NOT_HOSTED mean?

I am having a issue using Google's SDC (Secure Data Connector) with my Google App Engine application (my app is unable to get data from within my network but using a Google Docs spreadsheet I can get the data). So I found this troubleshooting info: http://code.google.com/securedataconnector/docs/debug.html. and as suggested I added the...

favicon.ico "not found error" in app engine

I am tryin to develop on app engine and in the list of the errors displayed in the admin console I always see /favicon.ico i read the documentation , added a new folder called static and added this in my app.yaml - url: /favicon.ico static_files: static/favicon.ico upload: static/favicon.ico but even now i a getting t...

Google App Engine Python Code: User Service

What does this example program from the Google App Engine documentation mean when it references self? Where can i look up what methods (such as self.response...)? from google.appengine.api import users from google.appengine.ext import webapp from google.appengine.ext.webapp.util import run_wsgi_app class MainPage(webapp.RequestHandler)...

filter with string return nothing.

I run into follow problem. Did I miss anything? Association.all().count() 1 Association.all().fetch(1) [Association(**{'server_url': u'server-url', 'handle': u'handle2', 'secret': 'c2VjcmV0\n', 'issued': 1242892477L, 'lifetime': 200L, 'assoc_type': u'HMAC-SHA1'})] Association.all().filter('server_url =', 'server-url').count() 0 # exp...

to send emails from Google appengine

I have a web server with Django(Python programming language), hosted with Apache server. I would like to configure Google Appengine for the email server. My web server should be able to use Google Appengine, when it makes any email send using EmailMessage or sendmail infrastructure of Google mail api. I learnt that using remote_api I can...

Breaking out of the Google App Engine Python lock-in?

Are there any guidelines to writing Google App Engine Python code that would work without Google's infrastructure on other platforms? Is there any known attempt to create an open source framework which can run applications designed for Google App Engine on other platforms? Edit: To clarify, the question really is: If I develop an app...

How does one sync live to dev datastores on Google App Engine?

I've got some data up on Google App Engine's live datastore, but would like to have a local copy as well for local development. What's the best way to do an occasional sync? ...

How do I get a count of all entries of a given type stored in Google appengine's datastore?

What I'm looking for essentially is this SQL translated into Google AppEngine (for Java) terms: select count(*) from Customers Seems simple enough, but from reading the documentation, it seems like I would have to run a query that matches all Customers, loop though it and count the results, taking paging into account. I do not want to...

What if I want to store a None value in the memcache?

This is specifically related to the Google App Engine Memcache API, but I'm sure it also applies to other Memcache tools. The dictionary .get() method allows you to specify a default value, such as dict.get('key', 'defaultval') This can be useful if it's possible you might want to store None as a value in a dictionary. However, the m...

How can I create an image dynamically on AppEngine

I have an application hosted in Java on AppEngine and I would like to add a feature where users can get a graphical summary of their data. BufferedImage is listed as not supported on AppEngine. The display process will be simple--a series of small squares in one of two colors. Regards, Kent ...

How to use inbulit django templatetags in google-app-engine

I am trying to use Django in built templatetags like markup and humanize in my google app , but its not working. I added markup and humanize in the INSTALLED_APPS. Still not working. How to use that? ...

Why can I not view my Google App Engine cron admin page?

When I go to http://localhost:8080/_ah/admin/cron, as stated in Google's docs, I get the following: Traceback (most recent call last): File "C:\Program Files\Google\google_appengine\google\appengine\ext\webapp\__init__.py", line 501, in __call__ handler.get(*groups) File "C:\Program Files\Google\google_appengine\google\appengine\ext\adm...

How to I determine if an object exists for a given key in the Google AppEngine datastore using Java?

I'm trying to port the Sharding Counters example (code.google.com/appengine/articles/sharding_counters.html) to Java. The only problem is that the Java API does not have a call similar to Python's 'get_by_key_name'. This is the basic idea: Transaction tx = pm.currentTransaction(); Key key = KeyFactory.createKey(C...