In a Python Google App Engine app I'm writing, I have an entity stored in the datastore that I need to retrieve, make an exact copy of it (with the exception of the key), and then put this entity back in.
How should I do this? In particular, are there any caveats or tricks I need to be aware of when doing this so that I get a copy of t...
And if not, why not?
The following index always fails to build on the production server, even though I had thought I could have a sort order with a list property as long as the index didn't sort or match against any other properties.
- kind: Foo
properties:
- name: location_geocells
- name: time
direction: desc
If such a co...
How to create database table in Google App Engine
...
Hello,
I am working with GWT and have 4 Service Implementations that need a PersistenceManagerFactory. I followed Google's advice on creating a singleton class, however I am unsure of where this class should be instantiated and referenced from in the server-side code.
The class looks like this
import javax.jdo.JDOHelper;
import javax....
i floow this step by step: http://beautifulisbetterthanugly.com/posts/2009/aug/19/compile-ssl-115-python-25-or-lower/
but not successful ,and this is my error:
how do do this ,
thanks
updated
and i import successful when 'cd' to 'build\lib.win32-2.5',
my new problem is : how to import it successful when i run 'python' on oth...
look this simple django on gae :
http://code.google.com/p/google-app-engine-samples/source/browse/trunk/django_example
and this is my code:
DIRNAME = os.path.dirname(__file__)
MEDIA_ROOT = os.path.join(DIRNAME, 'Media')
MEDIA_URL = '/mymedia/'
(r'^mymedia/(?P<path>.*)$', 'django.views.static.serve',{'document_root':settings.MEDIA_RO...
i've three entity classes in my project
public class Blobx {
@ManyToOne
private Userx user;
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Key id;
}
public class Index {
@Id
private String keyword;
@OneToMany(cascade = CascadeType.PERSIST)
private List<Blobx> blobs;
}
public class Userx {
@Id
private String name; ...
I`m looking for opinion which one is better for building web applications(web sites).
I have some experience with Django, and some with Google App Engine and App-Engine-Patch
for Django. And it seems to me that only Django is working faster than the GAE implementation.
Is there some other frameworks that simplify the developments process...
Is there a way to derive a user's email given his user_id?
...
I know Google App Engine offers free space, but I wonder if it's for storing data in it's database only or does it also allow me to create files and directories on the server side to store my data ? For instance can I use the following method to save file ?
public static void saveFile(String File_Path,StringBuffer Str_Buf,boolean Appe...
Now I use my own Java FTP program to ftp objects from my PC to my ISP's website server.
I want to use Google App Engine's servlet to get Paypal IPN messages, then store the messages into my own objects and ftp the objects to my ISP's website server, is this doable ? I heard Google App Engine doesn't support FTP.
I don't expect Google t...
In the documentation for Google App Engine, it says that when designing data models for the datastore, you should "optimize for reads, not writes". What exactly does this mean? What is more 'expensive', CPU intensive or time consuming?
...
Google App Engine models, likeso:
from google.appengine.ext.db import Model
class M(Model):
name = db.StringProperty()
Then in a Jinja2 template called from a Django view with an in instance of M passed in as m:
The name of this M is {{ m.name }}.
When m is initialized without name being set, the following is printed:
The ...
I use the following method to send email in the Google App Engine servlet :
void Send_Email(String From,String To,String Message_Text)
{
Properties props=new Properties();
Session session=Session.getDefaultInstance(props,null);
try
{
Message msg=new MimeMessage(session);
msg.setFrom(new InternetAddress(Fr...
this is app-engine-patch http://code.google.com/p/app-engine-patch/
i download it ,and unzip , but can't running on my google-app-engine launcher
why ?
thanks
updated
but the patch has app.yaml, and i can't find aep-sample
updated2
when i python manage.py runserver
so can app-engine-patch running on gae launcher ?
...
Hi,
I have a class which can contain many small elements in a list. Looks like:
public class Farm {
private ArrayList<Horse> mHorses;
}
just wondering what will happen if the mHorses array grew to something crazy like 15,000 elements. I'm assuming that trying to write and read this from the datastore would be crazy, because I'd ...
i using gae and django
this is my code:
class LogText(db.Model):
content = db.StringProperty(multiline=True)
class MyThread(threading.Thread):
def __init__(self,threadname):
threading.Thread.__init__(self, name=threadname)
def run(self,request):
log=LogText()
log.content=request.POST.get('content',...
I want some ideas on the best practice to implement an activity stream for a social network im building in app engine (PYTHON)
I first want to keep a log for all activities of each user - so that we have a history. i.e. someone became a friend, added a picture, changed their address etc. This way we have a users history available should...
i read the doc:
from google.appengine.api import mail
mail.send_mail(sender="[email protected]",
to="Albert Johnson <[email protected]>",
subject="Your account has been approved",
body="""
Dear Albert:
Your example.com account has been approved. You can now visit...
I am developing with app engine SDK. I have a feeling this is much too basic a question so apologies ahead of time...
A simple submit button doesnt work instead of just showing an alert box as expected it continues on afterwards and redirects me to the latest http-request, and I think this is because I dont understand how to tell the br...