Hi, I have two models like below:-
class Food(db.Model):
foodname=db.StringProperty()
cook=db.StringProperty()
class FoodReview(db.Model):
thereview=db.StringProperty()
reviews=db.ReferenceProperty(Food,collections_name='thefoodreviews')
I go ahead and create an entity:-
s=Food(foodname='apple',cook='Alice')`...
Hi, i would like to know if someone can recommends me a tutorial to
organize my project, or if can explain me how can i do it.
In my project i need this modules:
a) Core (entities classes + daos)
b) Backend (gwt module where the users can admin their app data, the
user must logu in)
c) Widgets (gwt module that loads an id in the url an...
I'm creating a turn and text-based strategy game in Django on Google App Engine with app-engine-patch. The simplified concept is that each player build can several different units and buildings to improve their base and fight other players for points.
My question involves the designing of the Django models, it seems to me that the buil...
hi,
i have decided to ditch django in favour of cheetah and something strange has happened.
on the appengine server it appears to work fine (simple demo), but on my local appengine host it complains of
File "/Users/sharif/Projects/myProject/main.py", line 7, in <module>
from Cheetah.Template import Template
ImportError: No module name...
I have already built a site with a strong page ranking in Google, but I started with too many subdomains, so I've re-worked the code so that it can all be one a single domain.
I have created a separate app which ought to simply act as a filter, permenantly redirecting all requests made to sub1.mydomain.com/something?id=hi to anotherdoma...
I try to create a configuration file, where I can store constants.
Whenever I try with ConfigParser, I get an error
Traceback (most recent call last):
File "/home/baun/google_appengine/google/appengine/ext/webapp /__init__.py", line 511, in __call__
handler.get(*groups)
File "/home/baun/workspace/octopuscloud/s3/S3.py",...
We have a small app with Restlet on the GAE server and GWT and Android clients. Restlet serves GWT-serialized replies to GWT clients and JSON to Android clients.
All is ok with GWT-serialization both locally and on AppEngine production servers.
All is ok with Android (JSON) clients talking to local dev server.
Android taking to produc...
If you were a one developer startup, which service would you pick and why? If the goal is to get to market really fast.
Would you go with GAE and build everything from scratch on Python, and one click deploy? or pick AWS, setup the server and db, use Rails, and do some admin work?
...
I've been trying for longer than I'd like to admit to get JSTL working under Eclipse (and ultimately under GAE/J). I've downloaded Eclipse, the Google App Engine Extension for Eclipse, and JSTL (http://download.java.net/maven/1/jstl/jars/ - jstl-1.2.jar is in the WEB-INF\lib directory).
My code is below along with the output:
<%@ tagl...
This is what I got from flex 4 file reference upload:
self.request =
Request: POST /UPLOAD
Accept: text/*
Cache-Control: no-cache
Connection: Keep-Alive
Content-Length: 51386
Content-Type: multipart/form-data; boundary=----------ei4cH2gL6ae0ei4ae0gL6GI3KM7ei4
Host: localhost:8080
User-Agent: Shockwave F...
I recently made a change to one of my app engine models. I changed a Key field to a String. I forgot to remove all the old records. I have already added new records that have strings in the key fields. If I do a query for all the records I get an error, can not cast Key to String. If I try and change the class back to the old way I ...
In Google App Engine, how do you check to see how much CPU has been used before and after a collection of events? I understand how to check the CPU usage during a single url fetch and I understand how to use stats to look at specific events in aggregate, but how can I determine how much CPU was used between say 5:00pm and 5:15pm?
Is th...
App Engine provides a way to set the current "namespace". Is this a way to be able to easily reference variables, and thus not always have to insert database lookups in one's code?
...
I am a student who needs help in uploading a zip file that contains CSV file into the GAE Server using java.
I am currently using uploadBean to upload my zip file in my server (Tomcat,localhost). Here is the code:
UploadBean upBean = new UploadBean();
upBean.setWhitelist("*.zip");
upBean.setOverwrite(true);
String path = getServletCon...
has any app engine already do this ?
thanks
...
i seem like this :
class myData(db.Model):
today= db.DateTimeProperty()
how to set 'today' to now time for Per hour ,not using open the webpage ?
thanks
...
I have followed the sample code below to upload a zip file in the blobstore. I am able to upload the zip file in but i have some concerns reading the file.
Sample Code http://code.google.com/appengine/docs/python/blobstore/overview.html#Complete_Sample_App
My zip file has 6 CSV files where my system will read the files and import the ...
I am having problems getting the logout link work in GAE (Python).
This is the page I am looking at.
In my template, I create a link
<p><a href="\users.create_logout_url("/")\">Logout</a></p>
But when I click on it I get "broken link" message from Chrome. The url for the link looks like this:
http://localhost:8085/users.create_logo...
Hi I roll out some site on google apps engine but I'm not really happy about it for this reason:
django is not fully supported so no administration etc.
using django patch etc. sometimes give me some problem when new release on gae is out
a registering domain (with go daddy) and add it to google apps engine (no redirection)
seems take ...
Assuming I have the following:
class Person(db.Model):
name = db.StringProperty()
I would like to print all the names in an html file using a template.
template_values = {'list': Person.all()}
And the template will look like this:
{% for person in list %}
<form>
<p>{{ person.name}} </p>
<button type="button" name="**{{ perso...