I need to use log4j in my application, but I don't know how I can get properties loaded. Deafult properties files says that I should put log4j.properties to /WEB-INF/classes/ folder, but in eclipse I cannot see that folder and I cannot create it, because it already exists. And I cannot add any files to that folder either.
Here is error ...
I am using GAE's Python environment and Janrain in order to provide multiple ways to login in my service.
Based on login information I receive from Janrain, I create a google.appengine.api.User object and store it to the datastore. Is there a way to handle this new object with the built-in get_current_user()? I need to be able to dete...
I am looking for an Python library which is compatible with app engine and provides an interface to the Twitter API.
I found the python-twitter project - has anyone has used it on app engine?
...
I've been learning Python and now I'd like to learn a Python-based web framework. I'm considering Google App Engine and Django. Which one should I choose? What are their unique features and learning curves?
...
I need to update entity that I loaded from the datastore. How can I do this with GAE JDO?
...
How do App Engine numbers work? Are they only integers? Can I use floats? Can I reuse old version numbers?
...
Hello,
I am using templates with django. I am having a problem where the Context is not being rendered. The meta_k is null. The meta_description is not.
t = get_template('projects.html')
html = t.render(Context({
'completed': completed,
'current':current,
'description': sp.description,
'project_tit...
Hi Folks,
I'm exploring appengine (java), and as per subject, how do I, using DatastoreService, get an Entity based on Key and conditions?
In my scenario, Trainer's have many to many relationship with User's, so I have my structure as so
Trainer(id, name, type, department)
User(id, name, address, is_activated)
TrainerUser(id, trainer_...
Is it possible to programmatically retrieve any of the YAML parameters during run-time? Are they stored in the environment somewhere?
Good example would be to automatically find the application version and to add it as a comment in the landing HTML page.
...
For all my data in the GAE Datastore I have a model for keeping track of counters/total number of records (since we can't use traditional SUM queries). I want to know the most efficient way of incrementing these global count values whenever I insert/delete a record. This is what I'm currently doing:
counter = DBCounter.all().fetch(1)
db...
Every example for GAE Chats uses some kind of polling. However, if my GAE app holds a list of clients (in the datastore if necessary), perhaps I could avoid polling by sending a message to all these clients. How can I achieve this?
...
I am using gae-sessions for the back end session management, the problem that occurs is although I am able to get the data of the session in a self.response.out.write() command when I am trying something simple like
session = get_current_session()
profile = session['me']
templates.render(self, 'tmp.html', profile=profile)
{{profile}...
q = WorldObject.all()
# define boundaries
# left
q.filter('x >=', x)
# right
q.filter('x <', x + width)
# top
q.filter('y >=', y)
# bottom
q.filter('y <', y + height)
#q.filter('world', world_key)
wobjects = q.fetch(1000)
I got an error saying I can't use multiple sorts
q = WorldObject.all()
q.filter('xy >=', db.GeoPt(1, 1))
q.filt...
Ok, so I use the GPE to create a new web project employing GAE but not GWT. Then, I right-click the project and do Run As -> (Google) Web application. Server starts up without error and tells me to visit: http://localhost:8888/.
When I visit this url, I'm served a 404 error instead of the index.html page that the project is configur...
Hi all,
Is that possible to return a db result which sort by density matching in ListProperty
For example, I have a db.ListProperty(basestring) with below value:
list_A = ['a1','a2','a3','a4','a5']
list_B = ['b1','b2','b3','b4','b5']
list_C = ['a1','a2','b1','b2','b3']
giving to_be_match_list = ['a1','b1','b2'] and return result in ...
Hi!
I am making a blog and store the publishing date of a blog post in the datastore. It looks like this:
post.date = datetime.datetime.now()
It now displays like: 2010-10-04 07:30:15.204352 But I want the datetime to be displayed differently. How (and where) can I set that how the date is displayed? I'd like to set the date format l...
I'm trying to use HtmlUnit to get DOM of webpages. However, when I try to run this code on app engine development server (using the eclipse plugin):
WebClient wc=new WebClient();
HtmlPage page1= wc.getPage("http://ww.google.com/");
I get this exception:
java.net.URLStreamHandler is a restricted class.
Is it not possible to use Htm...
I'm sending an image from an Android phone to an AppEngine. The AppEngine is throwing content exceptions. My process of elimination has failed so I suspect I've done something larger wrong. Do I have a content type problem or a larger problem?
The AppEngine log shows the following errors depending on the content type [content type -->...
I have the following string from a REST JSON response:
[{"uid":10512213, "name":"Bob"},{"uid":7208201, "name":"John"},{"uid":10570, "name":"Jim"},{"uid":1799657, "name":"Sally"}]
The rest response definition is from Facebook: FB REST Link
I am using Google App Engine + GAELYK which runs in Jetty.
What is the best way to convert the a...
I am trying out Google App Engine Java, however the absence of a unique constraint is making things difficult.
I have been through this post and this blog suggests a method to implement something similar. My background is in MySQL.Moving to datastore without a unique constraint makes me jittery because I never had to worry about duplicat...