Hi. I'm a J2EE, Python and Rails developer.
I've just posted a tutorial (http://xponrails.net/wrblog/view_post/19)
on how to model and manage Tags in an AppEngine-Django application.
The code works well for me, but I would like to receive your feedback.
Cheers, Stefano
great
On Mon, Dec 15, 2008 at 4:20 PM, xponrails stefac...@gmail.com wrote:
Hi. I'm a J2EE, Python and Rails developer.
I've just posted a tutorial (http://xponrails.net/wrblog/view_post/19)
on how to model and manage Tags in an AppEngine-Django application.
The code works well for me,
For '/update_tags/mark365'
Url mapping cloud be:
('/update_tags/(.*)', UpdateTags),
And class:
class UpdateTags(BaseRequestHandler):
def get(self, mark):
Javascript:
function updateTags(mark){
new Ajax.Updater('tagging_area', '/update_tags/' + mark, {
method: 'get'
});
}
For
One write in bigtable datastore cost around 900 mcycles. One read cost
around 40 mcycles. You have one write and 10 reads and this reason why
it is 1252 avg.
There is no memcache that can help you with writing to datastore. Also
memcache can't help you in reading from datastore with standard
If you know that there will be always less then 20 categories (because
of request quota limit) code is simple. If it could be more, then you
need to implement some pageing tehnics.
What you need is something like this:
rez = {}
ctgs = []
i = 0
for ctg in Category.all()
i += 1
Hi, djidjadji, thanks for your comment.
I tried both query as below:
query = models.Ownership.all().filter('user', user),filter('deleted',
False).order('-created_on').fetch(offset, amount)
query = models.Ownership.all().filter('user =', user),filter('deleted
=',
The collection_name part is just a shortcut for a query you can
construct yourself.
result = ModelWithRef.all().filter('refprop =', obj.key()).fetch(num)
2008/12/15 James thelevybre...@gmail.com:
The collection_name part of the ReferenceProperty is a really great
way of threading from
A snippet from the manual
==
filter(property_operator, value)
Adds a property condition filter to the query. Only entities with
properties that meet all of the conditions will be returned by the
query.
Arguments:
property_operator
A string containing the
now if i want to list all the children of a particular parent how do i
do that?
parent_entity.childmodel_set
You can customise the name of the collectio:
parent = db.ReferenceProperty(ParentModel,
collection_name='children')
... then call:
parent_entity.children
Docs:
Group, i'm starting work on an AppEngine site and i was going to use
Django (i haven't used it before), i went through the Django docs and
i saw lots of useful features but many exist already on the AppEngine,
such as database models and forms (through
google.appengine.ext.db.djangoforms) - plus
If you're not manipulating the applet with javascript (or vice versa)
then why not just put the applet in an iframe linked from the external
host you mentioned and make it look pretty. It's less than ideal but
one way or another you can get around this.
Bobby
On Dec 9, 4:58 pm, jago
I'm from Kyrgyzstan and when I'm trying to Verify Your Account by
SMS
I'm getting
An error has occurred while sending. Please try again.
Please help I'm so interested in GAE :(
My number is: +996 545 xx
tried with and w/o +
with and wi/o spaces
Hi there,
I got this error multiple times( when i was entering the number wrongly)
then finally i got through..
Try entering number like this:
my country code is +91 and then 10 digit telephone number
i wrote it like
+91 XXX XXX
hope this helps!
Regards
Dave
On 12/15/08, Bakyt Niyazov
Check out assembla.com. It has both source control hosting (give
mercurial a try...it's a lot more flexible than SVN, the the GUI
options still have their quirks) and project management features
(which is what it sounds like you want).
(Note: I'm not affiliated with them at all. Just a happy
Thing is the timeout. I manage inconsistencies from this start. Also
check appengine admin which catches bad references.
http://code.google.com/p/appengine-admin/
http://dpaste.com/hold/99361/
class ImagePage(webapp.RequestHandler):
def get(self):
if users.is_current_user_admin():
I get an additional information.
I vacuumed the problem index and rebuilt the same index.
The number of result set before vacuum_index is not same as one of
after that.
Obviously, query is same.
So I think my app get into this situation while rebuilding index.
I hope gae team checks my app's
niklasr,
Thank you for sharing your approach. It is very illuminating.
Andy,
I think I understand a little better and have revised our app but have
not deployed the change yet. The class Group has not been changed, and
we have not yet finalized a way to make the key_name unique by adding
a
Hi,
Thanks for filing the issue.
This is related to storing a floatproperty in the SDK datastore, on Macs the
datastore file may get occasionally corrupted. Currently you will need to
clear the datastore on your local machine to fix this issue.
-Marzia
On Sat, Dec 13, 2008 at 7:52 AM,
Hi,
Errors like this will occur when you upload applications too frequently.
The current quota sets application uploads to approximately 100 per day.
-Marzia
On Sat, Dec 13, 2008 at 6:39 PM, Tom sharpbla...@gmail.com wrote:
I have encountered a strange glitch with GAE. I cant select a
Hi,
Please file a feature request for this:
http://code.google.com/p/googleappengine/issues/list
Currently, the best work around is to set the subject line to a single space
(' ') if you would prefer not to send a subject.
-Marzia
On Sun, Dec 14, 2008 at 3:05 PM, MajorProgamming
Well, Django doesn't really extend App Engine with more functionality,
because you probably could do everything you could do in Django in
webapp and vice versa.
What are the main advantages of using Django on the AppEngine?
Well, if you ask me that would be support from the Django community
This is actually happening on Linux, not sure if that matters or not.
Clearing the datastore is my only solution to getting it back up on
the SDK currently, but once I run the routine again, it's corrupted
again. I did try converting the entire property to a
db.DateTimeProperty and adding
Hi,
I just assumed it was Mac because it's an issue we've seen with Macs that
have 2.5.0 installed, and I'm assuming this is your Python installation?
Generally, float values in the datastore just don't work with Python 2.5.0.
Support for buffer objects in struct.unpack was not added until
Ah, good point about being able to make use of existing Django apps.
Thanks.
Bobby
On Dec 15, 2:46 pm, Jesaja Everling jeverl...@gmail.com wrote:
Well, Django doesn't really extend App Engine with more functionality,
because you probably could do everything you could do in Django in
webapp
Ok great. I'll have to check on the python version, it's whatever
xandros makes available (I haven't gotten rid of the default OS on my
eeepc because I'm lazy). If worse comes to worse I'll try compiling
the latest python by hand and see if that works. I should have this
done by the weekend. I'll
Hi,
Currently there is no way to verify this only with App Engine.
I imagine that you could build a solution that would use some kind of client
software + App Engine to check the hash of the file on the client side and
verify it against the known value stored on App Engine.
-Marzia
On Sun, Dec
One note on portability, for example for retrieving all objects in the
datastore, sorted, in Django one could do:
Poll.objects.all().order_by(...)
Whereas in AppEngine it complains that order_by isn't defined, and i
have to use the AppEngine's version:
Poll.objects.all().order(...)
Also, when
Hi Dylan,
H, this is confusing because it works perfectly for me. I made a simple
application:
static
- photos
- folder
- image.jpg
- folder2
- image.jpg [different image]
With this in my app.yaml:
- url: /photos/(.*)/(.*\.(gif|jpg))
static_files: static/photos/\1/\2
Hi,
Answers inline
On Sun, Dec 14, 2008 at 4:12 PM, djidjadji djidja...@gmail.com wrote:
I have read the posts about log warnings and the FAQ at
http://knol.google.com/k/marce/app-engine-community-faqs/vkzeph4si12v/1#
- From the FAQ
A: The mcycles number included in log
Fill out the SMS issues form:
http://appengine.google.com/waitlist/sms_issues
There's a community FAQ that covers this and other common issues:
http://knol.google.com/k/marce/app-engine-community-faqs/vkzeph4si12v/1#
--
www.muspy.com
On Dec 16, 4:34 am, Dave confused.develo...@gmail.com wrote:
Did that:
http://code.google.com/p/googleappengine/issues/detail?id=925
Thanks
On Dec 15, 2:32 pm, Marzia Niccolai ma...@google.com wrote:
Hi,
Please file a feature request for
this:http://code.google.com/p/googleappengine/issues/list
Currently, the best work around is to set the
The problem with built-in djangoforms and templates is that they are
from Django 0.96. Django 1.0 has a lot of new useful functionality, it
really worth the trouble installing it with your app.
Another advantage of Django is that it allows to implement custom user
authentication, this is
This is using the AppEngine helper (not the patch you linked to). I
thought the AppEngine helper would make sure that the Django model
methods would delegate to the AppEngine's version transparently but
some seem to be missing - why is this?
app-engine-patch does not try to replace appengine
Thanks,
It is working fine after re-installing PIL
- Sambi
On Dec 15, 4:51 am, djidjadji djidja...@gmail.com wrote:
It looks like your problem is with the PIL installation, not with the
google_appengine dev_server.
2008/12/15 Sambi ad...@tollymdb.com:
[snip]
File C:\Program
Hi,
I want to delete all my data models in production environment and upload new
set of entities. I have gone through previous threads regarding this
requirement. So far the solution seems to be selecting bunch of entities and
then deleting them through script or through data viewer. I tried both
I have a app running with static files, i have a form in the
index.html which has to be emailed back to me onsubmit. Is there a way
to do this? I have no experience with python, can this be done like
with php? I was able to find some documentation on sendmail:
I added Google's Friend Connect to my GAE application. Now, there are
two sign in steps on my site. One to authenticate using GAE users and
the other for Friend Connect. This is not desirable and I was
wondering if anyone knew of the method for integrating the two so
there is only one sign-in.
Hi, Marzia. Thank you for your reply.
It is missing.
For example, I run this query:
query = models.Ownership.all().filter('user =',
papti...@gmail.com),filter('deleted =',False).order('-
created_on').fetch(0, 20)
These lists are my expecting/getting result.
The getting result contains no 'NG'
This has been driving me nuts for the better part of 3 days.
I'm trying to organize my Python code, but when I move .py files out
of the app's root directory, the production servers seem to be unable
to import them. Yet it works perfectly fine on my local
dev_appserver.
Say I create a directory
compiling 2.5.2 from source appears to have fixed the database
corruption, though I'm still getting the http response too large error
when I try to bring up the stories now that they're scored as floating
points. If it turns out to be an appengine problem, I'll reply to this
thread, otherwise if
I like the Appengine Patch's approach the best so far, i think it's
quite good.
I'll stick with Django in hopes that eventually most of the missing
Django features and apps will be ported over (either by the Django
AppEngine-Helper or the AppEngine-Patch). Right now i've got nothing
to lose.
This is easy to do. See the mail api http://code.google.com/appengine/docs/mail/
for details.
On Dec 16, 1:28 pm, rakf1 kris...@gmail.com wrote:
I have a app running with static files, i have a form in the
index.html which has to be emailed back to me onsubmit. Is there a way
to do this? I
I'm not starting the page using template.render (), so I cannot
implement the way in the tutorials, i'm using static index.html... is
it supposed to work if i have the sendmail in form action, like this:
---??
form action=mail.cgi method=POST ...
On Dec 15, 7:53 pm, Greg g.fawc...@gmail.com
Hi Marzia -
Thanks for your reply. So unfortunately I don't that the order of the
app.yaml entries is the culprit. Here's my app.yaml:
handlers:
- url: /photos/(.*)/(.*\.(gif|png|jpg))
static_files: static/photos/\1/\2
upload: static/photos/(.*)/(.*\.(gif|png|jpg))
- url: /css
thanks, I'll implement it in the following week and let you know how
it comes out.
Shay
On Dec 15, 11:29 am, Matija matija.jerko...@gmail.com wrote:
For '/update_tags/mark365'
Url mapping cloud be:
('/update_tags/(.*)', UpdateTags),
And class:
class UpdateTags(BaseRequestHandler):
I'm not starting the page using template.render (), so I cannot
implement the way in the tutorials, i'm using static index.html... is
it supposed to work if i have the sendmail in form action, like this:
---??
form action=mail.cgi method=POST ...
No, but you can write your own handler. Use
Say I create a directory called code in the app root.
I had exactly the same problem a couple of months ago, took me quite a
few hours to find a solution.
Apparently the code name conflicts with some internal modules or
packages. I ended up renaming it to app, this fixed the problem.
--
Related issues:
http://code.google.com/p/googleappengine/issues/detail?id=793
http://code.google.com/p/googleappengine/issues/detail?id=169
On Dec 16, 11:50 am, Jyoti Shete-Javadekar
jyoti.javade...@gmail.com wrote:
Hi,
I want to delete all my data models in production environment and upload
Thanks for the reply; let me just clarify one point.
You say that if I restrict authentication to a particular Google Apps
domain, only users from that domain will be able to login. If I use
the Google Accounts login, it is not an issue.
However, I wanted to do this: Corporation 1 and
here is how i have setup the app.yaml, email.py and form.html, let me
know whats wrong ??, how should i setup handler for email.py in
app.yaml ??
app.yaml:
-
...
...
handlers:
- url: (.*)/
static_files: static\1/index.html
upload: static/index.html
- url: /
static_dir: static
50 matches
Mail list logo