[google-appengine] Re: Need help with Appengine helper.
Hi Noah, Where are these application settings? Doesn't seem to be anything app.yaml to tell it to clear things. Cheers, Pete On Sep 2, 8:53 pm, Noah Gift [EMAIL PROTECTED] wrote: On Tue, Sep 2, 2008 at 3:29 PM, Peter [EMAIL PROTECTED] wrote: Hmm. A couple of extra lines of documentation would have been very helpful. I'm not used to ignoring warnings and errors. Thanks for the info. After a bit of a test it does indeed seem to work regardless of warnings. The datastore seems to be empty at each startup which could be a bit tedious. Is there any way to keep it between server starts? Make sure you don't have clear the datastore checked on application settings. Cheers, Pete On Sep 2, 3:45 pm, Ethan Post [EMAIL PROTECTED] wrote: This got me going. http://thomas.broxrost.com/2008/04/08/django-on-google-app-engine/ On Sun, Aug 31, 2008 at 5:25 PM, Peter [EMAIL PROTECTED] wrote: I'm trying to get django and app engine working together. I'm a novice with both, so maybe I'm missing something. I'm running on Windows Vista. I'm following the instructions at http://code.google.com/appengine/articles/appengine_helper_for_django... -- Noah Gifthttp://noahgift.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: Help! Why the admin check doesn't work in production
Still not works for me, even I have redeployed it. On Sep 4, 7:01 am, Alexander Kojevnikov [EMAIL PROTECTED] wrote: Issue 689 seems to be fixed, check your website again. On Sep 4, 1:46 am, Ethan [EMAIL PROTECTED] wrote: If so, how can I login as an admin? On Sep 3, 3:41 pm, ade [EMAIL PROTECTED] wrote: Login only from a Google Accounts that is not associated with your Google Apps. On Sep 3, 1:19 pm, John Wang [EMAIL PROTECTED] wrote: I have met the same problem. So wired problems. On Sep 3, 12:29 am, Ethan [EMAIL PROTECTED] wrote: please help, in my app.yaml: url: /admin/.* -script: admin.py -login: admin it works fine in development, but after I upload it to App Engine Server and login, in production, I got Error: Forbidden Your client does not have permission to get URL /admin/ from this server. and I am sure that I am using the only developer user to visit this page.I can login to the dashboard without problems. Is there a way to fix the problem? Thanks Ethan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: Problems with Geohash / Inaccuracy / ow to deal with this ?
Do you have a example of a point whose geohash value isn't greater than SW, NE geohashes? I've tried, in the python interpreter, many examples, and haven't observed what you're describing. It's pretty scary because I'm writing a lot of code for a geo app that's based on that property of geohashes, described at http://labs.metacarta.com/blog/27.entry/, working. I knew about equator, etc cases needed special handling, but I'm not too concerned. -U On Sep 3, 10:23 pm, Pierre [EMAIL PROTECTED] wrote: Hi, I need to find points (lat/lng) within a certain bounding box. To do so, I tried Geohash python implementation (http://mappinghacks.com/ code/geohash.py.txt). Problem's data is : - I have 2 points (South west SW corner / North east NE corner) describing a geographic Bounding box - I have a model (let's call it 'Poi') having a field geohash of type Db.StringProperty + Lat and Lng field (Float) Question is : How on earth (lol :-) ) can I find all Poi within my bounding box ? I've already tried something like : Create Geohash for SW, create Geohash for NE and do something like : SELECT * FROM Poi WHERE geohash :1 and geohash = :2, geohash(SW), geohash(NE) Also tried with geoindex, at different depth but all this fails and still give points not located within Bounding box. Also tried like describe in http://labs.metacarta.com/blog/27.entry/ geographic-queries-on-google-app-engine/ to create a small surrounding box for each Poi and then create a geohash for this specific bounding box to be in between my SW-NE bounding box Nothing is working even with not worst case (I mean equatorial problem...) case/ Any help will be greatly appreciated. Thanks all, Pierre --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: Problems with Geohash / Inaccuracy / ow to deal with this ?
Hi, Here's an example : [GCC 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2)] on linux2 Type help, copyright, credits or license for more information. import geohash hashSW = geohash.Geohash((1.5765380859375,42.894076403348976)) hashNE = geohash.Geohash((6.1907958984375,44.3002644115815)) hashPoi = geohash.Geohash((3.867915,43.733638)) hashPoi hashSW False hashPoi hashNE True With geoIndex : hashSW = geohash.Geoindex((1.5765380859375,42.894076403348976)) hashNE = geohash.Geoindex((6.1907958984375,44.3002644115815)) hashPoi = geohash.Geoindex((3.867915,43.733638)) hashPoi hashSW False hashPoi hashNE True I might be missing something but I thought : hash(SW) hashPoi hash(NE) How do you use it and do you find something different ? Regards, Pierre On 4 sep, 12:33, Ubaldo Huerta [EMAIL PROTECTED] wrote: Do you have a example of a point whose geohash value isn't greater than SW, NE geohashes? I've tried, in the python interpreter, many examples, and haven't observed what you're describing. It's pretty scary because I'm writing a lot of code for a geo app that's based on that property of geohashes, described athttp://labs.metacarta.com/blog/27.entry/, working. I knew about equator, etc cases needed special handling, but I'm not too concerned. -U On Sep 3, 10:23 pm, Pierre [EMAIL PROTECTED] wrote: Hi, I need to find points (lat/lng) within a certain bounding box. To do so, I tried Geohash python implementation (http://mappinghacks.com/ code/geohash.py.txt). Problem's data is : - I have 2 points (South west SW corner / North east NE corner) describing a geographic Bounding box - I have a model (let's call it 'Poi') having a field geohash of type Db.StringProperty + Lat and Lng field (Float) Question is : How on earth (lol :-) ) can I find all Poi within my bounding box ? I've already tried something like : Create Geohash for SW, create Geohash for NE and do something like : SELECT * FROM Poi WHERE geohash :1 and geohash = :2, geohash(SW), geohash(NE) Also tried with geoindex, at different depth but all this fails and still give points not located within Bounding box. Also tried like describe in http://labs.metacarta.com/blog/27.entry/ geographic-queries-on-google-app-engine/ to create a small surrounding box for each Poi and then create a geohash for this specific bounding box to be in between my SW-NE bounding box Nothing is working even with not worst case (I mean equatorial problem...) case/ Any help will be greatly appreciated. Thanks all, Pierre --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: select and filter by date
Hi. I can run it, but it returns a count of 0 when it should return 2. Regards, Kjartan S. On Aug 30, 8:19 pm, Davide Rognoni [EMAIL PROTECTED] wrote: Can you make this test, using: query = Game.all() query.filter('time =', datetime.datetime.strptime(2008-08-29, %Y- %m-%d)) print query.count() On Aug 30, 9:58 am, Kjartan [EMAIL PROTECTED] wrote: Hi gang. I'm having some problems selecting data from the datastore andfilter it bydate. According to what I've read in thr groups I'm not the only one experiencing this. This is the query I have: game_query = Game.gql('where game_date = :1', datetime.datetime(2008,8,29,0,0,0)).get() It returns an empty query although the datastore contains a few entities with the datetime 2008-08-29 00:00:00. Any ideas would be helpful in this case. Regards, Kjartan S. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: Django 1.0?
First search result on Django 1.0: http://groups.google.com/group/google-appengine/msg/d91a710891cc6789 On Sep 3, 8:40 pm, DaNmarner [EMAIL PROTECTED] wrote: Does any body know whether GAE is going to update the version included Django to 1.0? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: Google App Engine Development Tools (gaedt)
Thanks for your nice job. But I install it and no Google App Engine (GAE) project menu in new project..., why? My eclipse version: Version: 3.3.0 Build id: M20070921-1145 pydev: 1.3.20 python: 2.5.2 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: Datastore write performance question
Nobody? Can somebody point me to any relevant blog entries/ posts / documents, so I can figure it out myself On Sep 1, 1:46 pm, I.K. [EMAIL PROTECTED] wrote: Hi all, In the belief that I will improve systems performance, I have been reducing the number of Datastore writes by creating a few larger models with lots of data in therm, rather than a larger number of smaller models. Am I correct in my assumption? This obviously affects my design and code, so I just want to be sure I'm making extra work for myself. Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: Random entity from datastore.
How big is the datastore? If it is not very big: Perhaps all records have an ID. Read al the ID's values in an array. (Then you also know how many records there are) Generate a random number = amount of IDs. Select with the randomk number the ID from the array. Get the record. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Catch All Error Handler
Hi, Are there any suggestions on how to implement a catch all error handler in the webapp framework? I want to display a custom web page on any unhandled errors in my app. Thanks, ae --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: very simple question: HELP!
Sorry, I'm a beginner programmer, I don't know what eclipse means, and I don't really understand much of what you're saying. J. On Aug 5, 11:51 pm, andy [EMAIL PROTECTED] wrote: TenHanger, You can use eclipse and sort of bypass the prompt. You can start your application in and have it run and compiled on change. Search for PyDev. Also I believe that there is a tutorial on windows on how to setup Eclipse and PyDev and get your project running. Another why you might get an error is because you did not define the PATH environment variable where python.exe is. Hope that helps. On Tue, Aug 5, 2008 at 11:11 PM, TenHanger [EMAIL PROTECTED] wrote: I have downloaded the SDK and Python 2.5. I have written my HelloWorld files in a folder with Notebook on a Windows Vista machine. I have watched the video, even tho the stupid video is demonstrated in Apple not PC. But I can't get the darn dev_appengine.py to run the HelloWorld application, I keep getting an error in my Command Prompt. I am new at programming, but trying to learn, and this is frustrating the heck out of me. I haven't used a Command Line in Windows since Windows 3.0 operating system. I don't understand why Google's video isn't done in both Windows as well as Apple. I want to throw my computer off the balcony, why is this so hard? some one please god help me, or I'll go postal. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: Django 1.0?
I think the question is not if, but when. I hope it will happen very soon, now that 1.0 final is out... On 4 Sep., 02:40, DaNmarner [EMAIL PROTECTED] wrote: Does any body know whether GAE is going to update the version included Django to 1.0? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: Making A 404 Error Page
Perfect! Thanks guys. :) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: always redirect to Google Accounts on POST method
found mistake. =) LMZ wrote: Hello to all! i can't understand why always when user POST some data, he is redirected to Google Accounts page. On GET all is ok. Example of code: [...] def post(self, note_key): user = users.get_current_user() if user: [...] def post(self, note_key): user = users.get_current_user() if user: [...] what I'm doing wrong?! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: Quota : Bandwidth In/out per Day != Data Sent/Received
The day is chunked into five pieces. Roughly 5 hours per chunk. The idea is that this way, even if you exhaust one 5 hour period, you'll still be able to serve the remaining 19. Of course, the real reason is so when they start charging, this way they'll be able to charge you for spike traffic that wouldn't otherwise exceed your daily free quota. Speaking of quotas, I'm really starting to wonder if there isn't something really wrong about their calculation; I did a load benchmark earlier, a simple ab2 -c 10 over a long period of time, after building up the load. Everything was working great, until suddenly, after about 40k requests, a ton of requests started spewing the dreaded cpu warnings. If I'd started a -c 100 or something then I'd understand it, but this was the exact same load pattern over a long period of time, and shouldn't result in any changes whatsoever on the google side of things. A completely stable workload, but still app engine went funky after a while and starting spewing the warnings that the requests never trigger under normal circumstances. If a completely stable workload like that will cause you to go over quota, there's no chance in hell you'll ever get even close to saturating your alotted 5 hour quotas. (Sorry to derail your thread a little bit.) On Sep 4, 11:31 pm, Sylvain [EMAIL PROTECTED] wrote: There are two kinds of quota. Documentation : Bandwidth In/out per Day = 10 000 MB Dashboard : Data Sent/Received = 2 000 MB Could you explain the difference ? Thank you. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---