google-app-engine

Python OS X 10.5 development environment

Hi, I would like to try out the Google App Engine Python environment, which the docs say runs 2.5.2. As I use OS X Leopard, I have Python 2.5.1 installed, but would like the latest 2.5.x version installed (not 2.6 or 3.0). It seems the latest version is 2.5.4 So, I went to here: http://wiki.python.org/moin/MacPython/Leopard and sto...

Unable to find the Python PIL library.Google App Engine

Installed the Google App Engine SDK.Python 2.6 perfect. Wanted to go into images, and test locally.Installed PIL Installed Python, then ran the PIL install, worked this time. Things seemed good, but trying to do localhost image manipulation gives: "NotImplementedError: Unable to find the Python PIL library. Please view the SDK documen...

How can I parse JSON in Google App Engine?

I'd like to parse a JSON string into an object under Google App Engine (python). What do you recommend? Something to encode/stringify would be nice too. Is what you recommend built in, or a library that I have to include in my app? Is it secure? Thanks. ...

Google App Engine with Django 1.0.2

Earlier it was necesary to install google-app-engine-django helper and distribute Django in zip. But how should I use it now after that they updated Google App Engine with Django 1.0.2. ...

Iterating over model attributes when creating a template in Django

I'm using Django in Google App Engine. If I have the class class Person(): first_name = StringProperty() last_name = StringProperty() and I have an instance where Person.first_name = Bob and Person.last_name = Vance, can I create a template that iterates over the Person attributes to produce: <tr> <td>First</td> <td>Bob</td>...

Python file at GAE

I have added a python file at google app engine. how to send a request to this file. Is this file needed to b executed explicitly? ...

Mismatch between MySQL and Python

I know the mismatch between Object Oriented Technology and the Relational Technology, generally here. But I do not know the mismatch between MySQL and Python, and other tools, not just ORMs, to deal with the issue, missing in the latter article. Questions: How is the problem dealt between MySQL and Python? Does App Engine's non-SQL...

appengine: cached reference property?

How can I cache a Reference Property in Google App Engine? For example, let's say I have the following models: class Many(db.Model): few = db.ReferenceProperty(Few) class Few(db.Model): year = db.IntegerProperty() Then I create many Many's that point to only one Few: one_few = Few.get_or_insert(year=2009) Many.get_or_inser...

How to refactor this Python code?

class MainPage(webapp.RequestHandler): def get(self): user = users.get_current_user() tasks_query = Task.all() tasks = tasks_query.fetch(1000) if user: url = users.create_logout_url(self.request.uri) else: url = users.create_login_url(self.request.uri) template_values = { 'tasks': tasks, ...

Is it possible to install/access SSL for my Google App Engine app?

Since App Engine is so locked down I assume there is no way to setup an SSL certificate to allow credit card payments. In the absence of this, how is it possible to secure handle payments in an App Engine app? ...

GAE Task Queues how to make the delay?

In Task Queues code is executed to connect to the server side through URL Fetch. My file queue.yaml. queue: - Name: default rate: 10 / m bucket_size: 1 In such settings, Tusk performed all at once, simultaneously. Specificity is that between the requests should be delayed at least 5 sec. Task must perform on stage with a d...

How to get the distinct value of one of my models in Google App Engine

I have a model, below, and I would like to get all the distinct area values. The SQL equivalent is select distinct area from tutorials class Tutorials(db.Model): path = db.StringProperty() area = db.StringProperty() sub_area = db.StringProperty() title = db.StringProperty() content = db.BlobProperty() rating =...

How do Singletons in Google App Engine (or more generally in a distributed server environment) work?

Hi, I am intrigued as to how singletons work in Google App Engine (or any distributed server environment). Given your application can be running in multiple processes (on multiple machines) at once, and requests can get routed all off the place, what actually happens under the hood when an app does something like: 'CacheManager.getInst...

How can I use Facebook Connect with Google App Engine without using Django?

I'm developing on the Google App Engine and I would like to integrate Facebook Connect into my site as a means for registering and authenticating. In the past, I relied on Google's Accounts API for user registration. I'm trying to use Google's webapp framework instead of Django but it seems that all the resources regarding Facebook conne...

Getting the name & extension of an uploaded file using python (google app engine)

I am using a form to upload files to the google app engine and store them in the datastore. l would also like to store the original file name and extension for presentation purposes. Is there a way of retrieving this data from the post sever side or can it only be gathered client side and sent as separate fields (e.g. http://www.tinyurl...

Bulk upload data into data store for GAE Java project.

I would like to populate the data store. Yet all the examples and instructions for populating the data store are concerned with Python projects. Is there a way to upload bulk data using the AppEngine Java tools? (At the moment the data is in CSV format, but I can easily reformat the data as needed.) It would be especially useful if it c...

Google Appengine & google Apps - mapping www.mydomain.com to my-app-id.appspot.com

This must have been discussed number of times.. but honestly i did so much googling around but it is impossible find a proper answer. First i built an app using appengine. Then I went to Versions tab in my appengine and tried to Add domain, which led me to buy the domain using google apps. Once I bought it, i'm lost totally. How do I ma...

Which Eclipse version should I use for Google GWT and Google App Engine development?

Ganymede, probably. But there are so many different ones. Any idea? ...

How do I define a unique property for a Model in Google App Engine?

I need some properties to be unique. How can I achieve this? Is there something like unique=True? I'm using Google App Engine for Python. ...

Is Eclipse Galileo compatible to Google Plugin for Eclipse?

They don't seem to mention which Eclipse Version must be used... ...