google-app-engine

source code trees: wide or deep

After writing a few python appengine apps I find myself torn between two approaches to organizing my source code tree: wide or deep. For concreteness, consider an internal application for a small consulting shop to manage business operations like contact management, project tracking & reporting, and employee management. The applicati...

what are the basic requirements for google adsense for our website

Hey all, Here i want google adsense on my website i developed website on python and google appengine my website is 1 month old can i get google adsense for this one? if yes than how??? and no than whats the basic requirement?? ...

mail sending from website

Hi, I've developed a site with Python, hosted on Google Apps, and I want to send emails from that site. Is that possible, and if so, where should I look to find out how? ...

serving large files like ebooks

can Google App Engine be used to store and serve large files like audible books? ...

What characters in key_name?

Hello, I wonder what you can use as a key_name? I do a lot of queries on non-ascii unicode characters, I wonder if I can use these as key names to speed up the queries. Thanks! ...

Can 2 objects have the same key name?

Hello, I wonder if 2 objects can have the same key name? They wouldn't be the same class. Thanks! ...

Alternative for Google AppEngine?

Hi, I recently had to realize a project on Google AppEngine. At the beginning I was sceptic. But there a some really nice approaches on Appengine: No server setup. Everything works out of the box. Gzip, libaries, etc. One-Click-Deployment. Fire up GAE Launcher on the Mac and klick DEPLOY. Done. Low costs Easy in-production-logging B...

Storing complex object on Datastore with Pickle, any faster alternatives?

To store a complex object to Datastore i'm currently using this approach: class PickleProperty(db.Property): data_type = db.Blob def get_value_for_datastore(self, model_instance): value = self.__get__(model_instance, model_instance.__class__) if value is not None: return db.Blob(pickle.dumps(value)) def make_value_f...

AppEngine Primary Keys

Hi, by default, GAE adds a unique key to your db entries. Is it possible to have a numeric unique key in addition? Elias ...

ReferenceProperty relations not working properly in Google App Engine with Django

Hi all, I am working on an application using Google application engine and Django. I am using app engine patch. Some of the models have ReferenceProperty fields. The issue is that when I am deleting some entries of the Referenced model, it should delete the entries where this ReferenceProperty is being used following the foreign key k...

User store fails on dev_appserver when performing redirect to login page

I am using Pyton 2.7 as this seems to be only Python MSI downloadable at the moment from Python.org. self.redirect(users.create_login_url(self.request.uri)) fails when running on dev_appserver localhost:8081/_ah/login?continue=http%3A//localhost%3A8081/ returns a 500. Although this does work: localhost:8081/_ah/admin/datastore Stack...

Fastest Text search method in a large text file

Hi, I am doing a text search in a rather big txt file (100k lines, 7mo) Text is not that big but I need a lot of searches. I want to look for a target string and return the line where it appears. My text file is formatted so that the target can only appear in one line. What is the most efficient way? I do a lot of searches so I want to...

nagare framework on gae ?

anyone using nagare framework on google app engine ? it seems interesting, but i could not find any documentaiton on how to use it on google app engine, as it uses stackless python. so any chances of its running on google app engine ? also, how stack less python differ from normal python ? thanks. links : Nagare Framework Stackl...

use of Solr (Lucene) search on Google App Engine

Currently use of Solr or Lucene is not fully supported on Google App Engine, there are hacks around the issue but none seems perfect. If I setup the Solr server via a cloud offering somewhere else, run the main site and application on GAE but use the Solr server for search functionalities, can anyone see any problems doing doing it this...

How to get something random in datastore (AppEngine)?

Currently i'm using something like this: images = Image.all() count = images.count() random_numb = random.randrange(1, count) image = Image.get_by_id(random_numb) But it turns out that the ids in the datastore on AppEngine don't start from 1. I have two images in datastore and their ids are 6001 and 7001. Is there a b...

Google App Engine local datastore viewer not working?

I learned about how to browse my local App Engine Datastore from this handy question. But now I'm using App Engine on a new machine, and the URL http://localhost:8888/_ah/admin is not working? It returns a 404 NOT_FOUND. My App Engine instance is definitely running on port 8888. I also just updated to the latest version. Any idea on why ...

How can I Create a List of References in Google App Engine Datastore?

I have a Foo type in my Google App Engine datastore. I'd like it to link to a series of other Foo types, call them prerequisites. I can use the ListProperty type to make a list of simple value types but I'm not sure how to do this with references. What is the recommended approach for doing this? ...

Get_by_key_name doesn't work with unicode key names of several characters

Hello, I'm using unicode strings for non latin characters as key names for my models. I can create objects without problems, and the appengine admin shows key name correctly (I'm using chinese characters, and the right characters) However, MyModel.get_by_key_name() returns None if the key_name is made of several characters. For 1 char...

Querying for a value existing in a model's list property in AppEngine

A sample model: class Foo(db.Model): id = db.IntegerProperty() bar = db.ListProperty(int, required=True) How can I query using either Query or GqlQuery to return all Foo entities that have a given value in their bar property? If I have a list of ids, is there a single filter that will return all entities whose id property...

Is Google App Engine the easy way out?

I'm one man shop, creating a social site. If my site becomes popular, will the tech gods (i.e. techcrunch, mashable, etc.) look down on me for using Google App Engine instead of creating and developing my own cutting edge infrastructure from scratch? ...