google-app-engine

Django ModelForm: adding an alias to a field

I have a (GoogleAppEngine) Django ModelForm: class A(db.Model): a = db.StringProperty() class MyAForm(djangoforms.ModelForm): class Meta: model = A This creates a form which has one string field a. On my form I'd like to call this something else, say b. So I'd like a form with a field called b and when the form is POSTed we ...

Version control for Google App Engine

I'm trying to find the best way to do distributed development (2-person team) on Google App Engine. Are we able to use git or mercurial on GAE? If not, does that mean we need another server to host our source code (and then deploy from that server)? Note: I'm a GAE noob. ...

max size in BlobProperty (appengine)

What is the maximum size of one BlobProperty in appengine? I'm not talking about of the Blobstore API, i'm referring to the property class BlobProperty Please add a link who support your answers ...

Possible to Schedule a Cron Job for Specific Day of Every Month on Google App Engine?

Question Is it possible to schedule a cron job on google app engine to run on the 27th day of every month? Background Looking at their syntax here, it appears doing that is too specific, but I wanted to see if anyone here managed to do it somehow. Interestingly enough, this works: 1st day of jan,feb,mar,apr,may,jun,jul,aug,sep,oct,n...

SHA-1 google blob app engine

I can see the SHA-1 of my blobs in the datastore viewer on live google app engine. Is there a recommended way I can access the SHA-1 hash (or any other hash) of a blob programmatically in GAE? ...

Accessing related object key without fetching object in App Engine

In general, it's better to do a single query vs. many queries for a given object. Let's say I have a bunch of 'son' objects each with a 'father'. I get all the 'son' objects: sons = Son.all() Then, I'd like to get all the fathers for that group of sons. I do: father_keys = {} for son in sons: father_keys.setdefault(son.father.key...

Get only the keys out of a reference property in GAE-Py

I've got a an app where I'm storing posts and their authors. Very straightforward each post has one author model. The problem is this: I fetch the last 10 posts using one call, using fetch() with limit = 10. But when I print them out, GAE uses 10 extra gets to access the author details, because the author object is a reference prope...

Speeding up templates in GAE-Py by aggregating RPC calls

Here's my problem: class City(Model): name = StringProperty() class Author(Model): name = StringProperty() city = ReferenceProperty(City) class Post(Model): author = ReferenceProperty(Author) content = StringProperty() The code isn't important... its this django template: {% for post in posts %} <div>{{post.content}}</di...

GAE: Making many queries into one.

Hi, I have a productpart database containing a string property named 'type'. What I'm trying to do is to get all products by a given type (sometimes more then one type). I've tried to use GAE filter method but can't get it to work properly. The only solution I've got working is to make a new db.GqlQuery for each type. The reason I n...

Custom widget for StringListProperty in GAE

I am using StringListProperty to store series of steps/tasks. By default StringListProperty is having Textarea widget. Instead i want to have multiple Text input fields each one for each item in the List. Is this something that is possible in GAE (or atleast in Django) Can the same be wrapped into a custom property such as TaskListProp...

What's the difference between Django, Ruby on Rails, Google App Engine, etc.?

I have a newbie question about developing interactive, dynamic web sites. Can someone explain concisely the differences between: Django Ruby on Rails Google App Engine CGI scripts/apps whatever else is or seems similar (PHP?, Java Servlets?, TurboGears?, etc.) When would I prefer, say, the Google App Engine over Django, etc.? If I wa...

Sending data to screen

I tried to use a Python program to create input and output screen for a simple GAE app. Importing Tkinter did not work. So I am resorting to html and django but i dont have a solid foundation in these. I simply need to enter text and have something else display in a formatted screen based on the text. For example user enters name and cod...

GAE Simple Searching + Autocomplete

I'm looking to create a search function for my flash game website. One of the problems with the site is that it is difficult to find a specific game you want, as users must go to the alphabetical list to find one they want. It's run with Google App Engine written in python, using the webapp framework. At the very least I need a simple...

How to copy a file via the browser to Amazon S3 using Python (and boto)?

Creating a file (key) into Amazon S3 using Python (and boto) is not a problem. With this code, I can connect to a bucket and create a key with a specific content: bucket_instance = connection.get_bucket('bucketname') key = bucket_instance.new_key('testfile.txt') key.set_contents_from_string('Content for File') I want to upload a file ...

Data modeling advice for a forum application on Google App Engine

I'm writing a simple forum-like application on Google App Engine and trying to avoid scalability issues. I'm new to this non-RBDMS approach, i'd like to avoid pitfalls from the beginning. The forum design is pretty simple, posts and replies will be the only concepts. What will be the best approach to the problem if the forum have million...

problems with sending non-english text over mail

I am trying to send non-english text over mail. The non-english text is on the "from" field of the mail (the text that appears beside the email address). In the recipient's mailbox, the non-english text is seen as a series of question marks. What could be wrong? Previously, I was having problems with printing non-english text from a sim...

Best database design (model) for user tables

I'm developping a web application using google appengine and django, but I think my problem is more general. The users have the possibility to create tables, look: tables are not represented as TABLES in the database. I give you an example: First form: Name of the the table: __________ First column name: __________ Second column na...

Python list : How to sort by timestamp? ( App Engine related )

I have ten entities in my Feed model ( this is an App Engine model) class Feed(db.Model): sometext = db.StringProperty() timestamp = db.DateTimeProperty(auto_now=True) list_of_keys = ["key1","key2","key3".... "key10"] so i call my entities using db.key() method: feeds = db.keys(list_of_keys) # this loop below prints the feed fo...

Google App Engine db.key() question / User-Feed model

am designing a feed system for users. so i have: class User(db.Model): name = db.StringProperty() list_of_keys = db.StringListProperty() class Feed(db.Model): event = db.StringProperty() timestamp = db.DateTimeProperty() # I created 10 feed entities # assuming i already have my 10 feed entities, I take their keys and put int...

Accessing an custom class from a JDO Class.

Right, I don't know if I'm barking entirely up the wrong tree here - I'm finding JDO and the Google AppEngine a bit tricky to get the hang of. Anyway, here goes. I have a class that contains another class as one of it's internal variables (see player1) @PersistenceCapable(identityType = IdentityType.APPLICATION) public class JDOGa...