Services like bit.ly are great for shortening URL’s that you want to include in tweets and other conversations. What is the simplest URL shortener application one could write in python for the Google App Engine?
...
I found an answer to this yesterday (and had some trouble finding the link again today). The link I saw resolved the problem of how to limit access to a Google App Engine's model instance by overloading db.UserProperty, like-so:
class CurrentUserProperty(db.UserProperty):
def checkCurrentUser(self, value):
if value != users.get_c...
I'm writing a simple app with AppEngine, using Python. After a successful insert by a user and redirect, I'd like to display a flash confirmation message on the next page.
What's the best way to keep state between one request and the next? Or is this not possible because AppEngine is distributed? I guess, the underlying question is whe...
Actualy, It's a couple of questions:
Is it possible to somehow avoid registering google apps if I just want to connect google app engine applications to non-naked domain (www.example.com for example:)
If described above is impossible, than do I have a right to register Google Apps Education Edition. And how can I proof that I'm non-pr...
I want to display a list of all the users in my site but I only want to display 10 people per age. I don't know how exactly to do this. I know how to do it by just displaying all the users in one page but that's not very good is it?
If I do it with the code I have now, it will only get the first ten users over and over again.
I want t...
I know that I can accept image uploads by having a form that POSTs to App Engine like so:
<form action="/upload_received" enctype="multipart/form-data" method="post">
<div><input type="file" name="img"/></div>
<div><input type="submit" value="Upload Image"></div>
</form>
Then in the Python code I can do something like
image = self.re...
After creating a patch to resolve this issue, I am now experiencing this when attempting to dump my data:
[ERROR ] [Thread-2] ExportProgressThread:
Traceback (most recent call last):
File "/Users/matthew/local/opt/google_appengine/google/appengine/tools/bulkloader.py", line 1375, in run
self.PerformWork()
File "/Users/matthew/...
I have updated to version 1.2.5 of the Python appengine SDK. However, now I am
getting the following error:
Traceback (most recent call last):
File "C:\Program Files\Google\google_appengine\google\appengine\ext
\webapp\__init__.py", line 507, in __call__
handler.get(*groups)
File "C:\Documents and Settings\DOLSEN\My Docume...
Hi all,
I would like to ask about some sources for developing applications with Python and Google App Engine.
For example, some controls to generate automatically pages with the insert/update/delete of a database table, or any other useful resources are welcome.
Thank you!
...
While working on my GAE project under my dev environment, whenever I upload data to my dev datastore, the logfiles are stored in my current directory, for instance:
C:\dev\ls
bulkloader-log-20090912.104643
bulkloader-log-20090912.104648
bulkloader-log-20090912.104731
bulkloader-log-20090912.105526
bulkloader-log-20090912.110428
bulkload...
On google appengine, you can retrieve the hash key value by doing a query like
select __key__ from furniture
But appengine datastore maintains a nicely autoincremented field ID for each kind.
How can I access it from a query?
select ID from furniture
Doesn't work
...
I'm using google appengine (python, of course :) ) and I'd like to do a string.replace on a string from the template file.
{% for item in items %}
<p>{{ item.code.replace( '_', ' ' ) }}</p>
{% endfor %}
But that isn't working. So we cannot execute anything other than basic checks in the app engine templates. Is that Correct ?
...
I want to develop my project on Google App Engine with Struts2. For the database I have two options JPA and JDO. Will you guys please suggest me on it? Both are new for me and I need to learn them. So I will be focused on one after your replies.
Thanks.
...
As described here, IDEA is adding the jdoconfig.xml to the class path twice during unit test runs. Can anyone suggest a work-around for this?
/System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Home/bin/java -Dgwt.args=-gen /Users/jgc/Library/Caches/IntelliJIDEA9M1/gwt/recipes.recipesea699bb7/Recipes.4dd34334/test/gen -out /...
I can't seem to select something based on timestamp. The behavior is a bit weird and the < and = symbols don't seem to mean what I expect them to.
""" A site message """
class Message( db.Model ) :
# from/to/ a few other fields
subject = db.StringProperty()
body = db.Text()
# this is the field i'm trying to use
sent = db.Da...
Again i have
""" A site message """
class Message( db.Model ) :
# from/to/ a few other fields
subject = db.StringProperty()
body = db.Text()
sent = db.DateTimeProperty( auto_now_add=True )
Now I'm trying to pick out a Message by its KEY. I saved off the key earlier and planted it in an HTML form. The result is a clickable...
I've used bulkloader.Loader to load stuff into the GAE dev and live datastore, but my next thing to to create objects from non-CSV data and push it into the datastore.
So say my object is something like:
class CainEvent(db.Model):
name =db.StringProperty(required=True)
birthdate = db.DateProperty()
Can anyone give me a s...
I'm using the Django Form Validation Framework on AppEngine (http://code.google.com/appengine/articles/djangoforms.html), like this:
data = MyForm(data=self.request.POST)
if data.is_valid():
entity = data.save(commit=False)
entity.put()
I wonder if there's a way to preprocess the POST data (strip out malicious code, HTML etc...
I am trying to get Django 1.1 working on Google App Engine.
I followed instructions but, they didn't work.
I get this error message:
ImportError: Could not import settings 'settings' (Is it on sys.path? Does it have syntax errors?): No module named settings
I bet Nick Johnson has the answer!
...
I am looking for a basic open source http proxy server for Google App Engine.
Preferably written in Python. Any suggestions?
...