[google-appengine] Re: Timeout: datastore timeout: operation took too long.

2009-04-17 Thread Paul Kinlan
Hi, I would just like to add myself into this, my app twitterautofollow (twollo) regularly gets DataStore time outs on puts (in the most part). All my entities are root entities. I did have a thread open on this only a few days ago. Paul 2009/4/17 Ray Malone rayish...@gmail.com I'm seeing

[google-appengine] Re: Fetching db.Key's instead of the full data

2009-04-17 Thread mbac...@googlemail.com
Thanks Jeff. :) 风笑雪, memcache is no solution in this case, but thanks anyway. I also want to keep the overhead as low as possible, because I am already storing a lot of text data inside the datastore. Therefore I don't want to have another Kind that just handles the list of available links if

[google-appengine] Re: Question about data.put() timeout

2009-04-17 Thread djidjadji
If you program a retry around the line plog.py, line 958, in get blogger_info.put() it will work often the second time 2009/4/17 lookgirl sag...@gmail.com: I have a running app now, and it often get many error like following, the error looks like same format xxx.put() Timeout. Could you

[google-appengine] Re: Timeout: datastore timeout: operation took too long.

2009-04-17 Thread Sylvain
Datastore timeout is one of the biggest (and oldest) issue with GAE and mostly because it is random. You can get it on get, put, fetch,... even with few entities. I hope that soon, datastore timeout will be negligible. Currently, it is not the case. Regards On 17 avr, 09:50, Paul Kinlan

[google-appengine] ratio of page views to adsense clicks to cover cost

2009-04-17 Thread sagey
Hello, I'm thinking about creating a webapp that would initially try to fund itself by using google ads. Does anyone have a calculation/formula/idea as to how many add clicks i would need to break even on the cost of hosting the site on gae? for example, Assuming i use up the free quotas,

[google-appengine] Re: ratio of page views to adsense clicks to cover cost

2009-04-17 Thread Sylvain
It is very hard to answer this question because all clicks have not the same value : from 0.05€ up to 1€ (maybe more) and the way the users click depend on many things (the site, the look, the position,) So I don't know if there is a magic formula. Regards On 17 avr, 13:17, sagey

[google-appengine] Java with Google app engine

2009-04-17 Thread kalyan
Hi All, I am new to Java with Google App engine in one HTML i am usinga href=/index1.html on click of this it should open perticular html page... how can i achieve this I tried with response.sendredirect concet but its not able to identify html path can any one tell me whats

[google-appengine] Re: Timeout: datastore timeout: operation took too long.

2009-04-17 Thread Ray Malone
Speaking only for my app, I can tell this is not an application issue. My datastore is made up of only root entities and in most cases works well quickly. My app doesn't see large volumes of requests per second and it's more like requests per minute. There is no possible way the errors I'm

[google-appengine] Re: ratio of page views to adsense clicks to cover cost

2009-04-17 Thread Paul Kinlan
Hi, It is pretty hard to work out if not impossible, because the cost per click is not constant, and your performance on the app engine might vary wildly from day to day so it may end up costing your more for the same work. The way that I compare advert performance is against a Cold Call rate,

[google-appengine] how to use json string in guest side?

2009-04-17 Thread DiveIntoGAE
server side: result = '[e,{pluribus:unum}]' self.response.out.write(simplejson.dumps(result)) guest side: var jsonResponse = JSON.parse(response); alert(jsonResponse); the result turns out to be: e,[Object Object] why? how can i get the data

[google-appengine] Re: ratio of page views to adsense clicks to cover cost

2009-04-17 Thread Richard Sage
Thanks for the replies, after writing the post i sort of thought that probably wouldn't be a definitive answer, but your posts have been useful nonetheless. I don't intend to rely on ads as my main source of revenue, i'm just going hoping, in case my intended main revenue stream doesn't work,

[google-appengine] reportlabs PDF generation (pdfmetrics) on my PC solved...

2009-04-17 Thread KenCorey
Oh bother. Just thought I'd post about my stupidity to hopefully make things smoother for someone else. For the record, I'm running XP Pro SP3, Python 2.5, GAE SDK 1.1.9, ReportLab's PDF library 2.3. In my investigations, I'd downloaded reportlab's .msi installer, which installed the pdf

[google-appengine] Suggestion: delete google-appengine group.

2009-04-17 Thread David Wilson
This might seem drastic, but it will solve the problem of lots of Java and Python-specific stuff hitting this group. I think it would be less of a crime if language-independent issues were discussed in the Java/Python groups, rather than the other way around, because in this solution, a

[google-appengine] Re: Suggestion: delete google-appengine group.

2009-04-17 Thread David Wilson
2009/4/17 David Wilson d...@botanicus.net: Nip the problem in the butt! Hah, I meant bud. :) David. -- It is better to be wrong than to be vague. — Freeman Dyson --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[google-appengine] Re: 关于使用webapp. template渲染页面中文乱码问题

2009-04-17 Thread 风笑雪
如果你用模板,把模板保存为UTF-8编码,并在head中加上:meta http-equiv='Content-Type' content='text/html; charset=UTF-8' / 如果是写在Python脚本里,在开头加上: #-*- coding: utf-8 -*- 2009/4/17 tankh64 tank...@gmail.com Have you tried inserting the following meta http-equiv='Content-Type' content='text/html; charset=UTF-8'

[google-appengine] Re: appcfg.py update_cron Server Error (500)

2009-04-17 Thread Kai
Thank for your reply, Anthony Definitely, the name of my app begins with a digit. OK, I will wait for next release. On Apr 17, 1:08 pm, Anthony Baxter anthonybax...@gmail.com wrote: Does your appid begin with a digit? Turns out I found a bug in cron that means the upload breaks in that case.

[google-appengine] app.yaml - how to serve ALL files as they are..?

2009-04-17 Thread jago
Hi, How do I set up the app.yaml that it uploads and serves basically all files as they are? jg --~--~-~--~~~---~--~~ 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] Announcing BDBDatastore, a replacement datastore for App Engine

2009-04-17 Thread Nick Johnson
Recently I've been working on a replacement datastore backend for App Engine, to allow hosting apps in a production environment (eg, not the dev_appserver), outside Google's cloud. Thanks largely to the long easter weekend, it's now at a point where I feel comfortable showing it off, and

[google-appengine] Re: app.yaml - how to serve ALL files as they are..?

2009-04-17 Thread 风笑雪
No simple way to do it. You need specify each of them. But you can use static_dir or wildcard character(*) to set a common handler. 2009/4/17 jago java.j...@gmail.com Hi, How do I set up the app.yaml that it uploads and serves basically all files as they are? jg

[google-appengine] Re: how to use json string in guest side?

2009-04-17 Thread 风笑雪
A dictionary is displays as [Object Object]. If you want, you can try this code: var json = eval('[e,{pluribus:unum}]'); alert(json[0]); for (key in json[1]) { alert(key + : + json[1][key]); } 2009/4/17 DiveIntoGAE taogf1...@gmail.com server side: result = '[e,{pluribus:unum}]'

[google-appengine] Re: Fetching db.Key's instead of the full data

2009-04-17 Thread 风笑雪
Perhaps you may keep it in another model. class BigModel(db.Model): ... class KeyModel(db.Model): key = db.ReferenceProperty(BigModel) # do below in a transaction bigEntity = BigModel() ... bigEntity.put() KeyModel(key=bigEntity.key()).put 2009/4/17 mbac...@googlemail.com

[google-appengine] Regex to serve certain filetype in subfolder?

2009-04-17 Thread jago
Hi, I have many jar files in subfolders of appfolder/folder What do I have to write in the app.yaml to serve those files statically? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google App Engine group. To post

[google-appengine] Re: urlfetch and another type of communication

2009-04-17 Thread Ben Nevile
And hello again. So I woke up this morning to see that the issue had been marked resolved, and that you determined that the spike did not affect your customers. I was furious! But then I actually took the time to carefully debug my application, and I see that in fact the problem was mine. I

[google-appengine] Re: Remove naked domain from appengine application

2009-04-17 Thread mifki
Not exactly. I registered and added application to my Google Apps domain long time ago right after App Engine launched. At that time naked domains were allowed and I just specified 'mifki.com' for my application without any problems and workarounds. Now I need to remove this domain from

[google-appengine] Re: Timeout: datastore timeout: operation took too long.

2009-04-17 Thread notcourage
Good for you that your company has good prospects. As somebody who has built high traffic sites (co-founder of IGN.com), I offer some advice: Don't even think about driving traffic to it unless it has been stable for weeks. If you are having problems w/ minute traffic, you can't imagine how bad

[google-appengine] Re: reportlabs PDF generation (pdfmetrics) on my PC solved...

2009-04-17 Thread johnP
Thanks for the info. I have been living with a different issue. Everything works just fine normally, but periodically, when generating a PDF on the local dev environment, I get the same PDFMetrics error. A restart of the dev environment get me back on track. Normally, this occurs when debugging

[google-appengine] URI Errors... logs?

2009-04-17 Thread Jesse Grosjean
I'm sorry if this has been covered elsewhere, but I can't seem to find it. In my apps Dashboard I see and errors box that looks like this: Errors URI Count % Errors /v1/documents 29 14% /v1/documents/3039-1/edits

[google-appengine] App Runs Differently When Uploaded

2009-04-17 Thread Akwesi
Hi, My app runs fine on my testing server, but when I upload it, my images as well as HTML files that I've added using the Django {% include file.html %} command don't appear. The files and images are in a static directory. The problem is not with the static directory because I have a CSS

[google-appengine] Re: Error: Invalid runtime specified

2009-04-17 Thread Shawi
HI Yesterday I registered for java runtime. But still I didn't get any email saying that my account is activated for java. So that means my request for java runtime is rejected? Thank you On Apr 9, 1:29 am, kaspar kaspar...@gmail.com wrote: I've the same problem On Apr 8, 8:17 pm,

[google-appengine] 500 Error uploading indexes. Need to clear indexes.

2009-04-17 Thread ssg123
I have many unneeded indexes that have been stuck in the building phase for days now (a result of not understanding how indexes worked). This appears to be preventing me from uploading necessary indexes (receive 500 error on attempted upload). As a result, my app is broken. Is it possible to

[google-appengine] AttributeError: 'unicode' object has no attribute 'has_key'

2009-04-17 Thread buger
When i'm trying simply get some objects from db i getting error: videos = Video.all().fetch(100) File /base/python_lib/versions/1/google/appengine/ext/db/ __init__.py, line 1391, in fetch return map(self._model_class.from_entity, raw) File

[google-appengine] Re: Setting up netbeans for GAE

2009-04-17 Thread nuboat
Hi, You can see from my blog http://www.thaidev.org/?p=196 really sorry i write in Thai language but i thought you can see from images. if you don't understand. you can ask me via blog comment. On Apr 10, 12:09 am, Prashant Gupta nextprash...@gmail.com wrote: Does anyone know the required

[google-appengine] Re: ratio of page views to adsense clicks to cover cost

2009-04-17 Thread wit
Ahmmm, just a thought: if you use _FREE_ quotas, how the hell are you going to break even? If you don't pay nothing, you break even at 0 visitors to your site. If your App should ever reach the levels of needing more quota (space, processing time) where you would need to buy additional

[google-appengine] can not connecton to localhost:8080

2009-04-17 Thread Tony
i am using windows vista system and eclipse plugin to setup java based google app project, everything looks fine, server also looks like started. this message display : The server is running at http://localhost:8080/ however, when i use firefox to connect to this url , it displyed can not

[google-appengine] unicode object has no attribute 'has_key'

2009-04-17 Thread buger
When i'm trying to do simple get() it raises error: Traceback (most recent call last): File /base/python_lib/versions/1/google/appengine/ext/webapp/ __init__.py, line 501, in __call__ handler.get(*groups) File /base/data/home/apps/musicvideobuger/1.332849534198860778/ video_crawler.py,

[google-appengine] Critical bug in URL handling: dropping everything after a semicolon

2009-04-17 Thread Alex Popescu
Hi, It looks like the production server is dropping everything it founds after a ; character in an URL. On production a request to: /090314/vm-memory-in-the-cloud-watch-what- kevin-has-to-say;b.html displays for request.url, respectively request.path:

[google-appengine] Re: Announcing BDBDatastore, a replacement datastore for App Engine

2009-04-17 Thread Nick Johnson
On Apr 17, 5:50 pm, johnP j...@thinkwave.com wrote: Quick question (I have not looked at your datastore at all yet) - Can using your datastore eliminate the limit of 1000 entities on a fetch?  Thanks - BDBDatastore itself doesn't enforce any limits on results returned, but it suffers all the

[google-appengine] Re: can not connecton to localhost:8080

2009-04-17 Thread 风笑雪
You need handle the root address. 2009/4/17 Tony tianzhe...@googlemail.com i am using windows vista system and eclipse plugin to setup java based google app project, everything looks fine, server also looks like started. this message display : The server is running at

[google-appengine] Re: App Runs Differently When Uploaded

2009-04-17 Thread 风笑雪
If you define this, it works the same. - url: /img static_dir: img but it won't: - url: /img static_dir: static/img So check your path first. And if you use template, it's not necessary to make your template html files as static files. Static files means visitors can visit it by a url, but

[google-appengine] Re: Critical bug in URL handling: dropping everything after a semicolon

2009-04-17 Thread 风笑雪
; is not a valid char in url, you need encode it. from urllib import quote quote(/090314/vm-memory-in-the-cloud-watch-what-kevin-has-to-say;b.html) '/090314/vm-memory-in-the-cloud-watch-what-kevin-has-to-say%3Bb.html' 2009/4/18 Alex Popescu the.mindstorm.mailingl...@gmail.com Hi, It looks

[google-appengine] Re: Suggestion: delete google-appengine group.

2009-04-17 Thread SCattaneo
/agree I was thinking this was needed as well. S On Apr 17, 6:25 am, David Wilson d...@botanicus.net wrote: 2009/4/17 David Wilson d...@botanicus.net: Nip the problem in the butt! Hah, I meant bud. :) David. -- It is better to be wrong than to be vague.   — Freeman Dyson

[google-appengine] appengine.google.com not available since...

2009-04-17 Thread Olivier Bolender
Hello, Since a fews days, I cannot reach the website at url http://appengine.google.com/start, I used firefox 3.1b3, IE8, or Chrome, same error : A fews fews seconds before a message from the browser who said (resume) : 310 (net::ERR_TOO_MANY_REDIRECTS) What the hell it is ? And how I can

[google-appengine] Re: Cron Schedule Format parsing error

2009-04-17 Thread Dan Sanderson
The docs have been fixed to match 1.2.0. -- Dan 2009/4/16 Anthony Baxter anthonybax...@gmail.com No, I'm asking as a future feature for the grammar. The doc will be fixed soon to match the 1.2.0 release, and a future release will make the of month words unnecessary. Anthony On Apr 16,

[google-appengine] Re: Suggestion: delete google-appengine group.

2009-04-17 Thread ramu
You can alwasy choose not to receive any mails from this group and read the discussions thorough web interface. Thankx... On Apr 17, 6:24 am, David Wilson d...@botanicus.net wrote: This might seem drastic, but it will solve the problem of lots of Java and Python-specific stuff hitting this

[google-appengine] Re: appengine.google.com not available since...

2009-04-17 Thread Jeff S (Google)
Hi Olivier, Are you signed in with a Google Apps account? If so, you may have better luck with appengine.google.com/a/example.com . If not, could you tell me the email address you are signed in with? Thank you, Jeff On Fri, Apr 17, 2009 at 10:26 AM, Olivier Bolender oliv...@bolender.orgwrote:

[google-appengine] Re: AttributeError: 'unicode' object has no attribute 'has_key'

2009-04-17 Thread buger
Sorry for duplication use this post http://groups.google.com/group/google-appengine/browse_thread/thread/8e40a5dd298bfab4# On Apr 17, 1:57 pm, buger leons...@gmail.com wrote: When i'm trying simply get some objects from db i getting error: videos = Video.all().fetch(100)   File

[google-appengine] Re: Timeout: datastore timeout: operation took too long.

2009-04-17 Thread Brandon Thomson
Google will not really acknowledge this as a problem or defect but neither do they provide a lot of options for workaround. My experience is that Timeouts do occur on about 0.5% of puts regardless of size of entity. These are root entities. It is not caused by write contention from multiple

[google-appengine] App Engine Skeleton

2009-04-17 Thread SKE
Features of version 0.0.1 http://pyoohtml.appspot.com/skeleton/ -- Sign-in/Sign-out (show the Email of the user logged) -- Three areas: public pages (default), private pages, admin pages -- Dynamic tabs/menu for area -- Build on DynamicHandler (extends RequestHandler) It is useful to load

[google-appengine] Re: Using add servlet wizard with Google App in Eclipse

2009-04-17 Thread Jeff S (Google)
Hi Hemen, I think this question would be better suited for the App Engine for Java discussion group. Would you mind reposting here?: http://groups.google.com/group/google-appengine-java or google-appengine-j...@googlegroups.com I had never tried the servlet wizard before. It looks like it

[google-appengine] Redirect all calls to appengine url to my Google Apps url

2009-04-17 Thread richardcur...@googlemail.com
Hi, how do I somehow 'redirect' all calls to appengine url to my Google Apps url? Something like: (Status-Line) HTTP/1.1 301 Moved Permanently if somebody calls: http://example.appspot.com I want it to be redirected to http://www.example.com similarily if somebody calls

[google-appengine] Cron Job Fails 301 Error

2009-04-17 Thread drthink
I am using Google App Engine with Django. I have started using the Cron jobs functionality but when the GAE system uses it I keep getting a 301 error, however the URL which activates the job runs fine. My setup is below any ideas? When I call the URL it runs fine. I am stuck. Cheers DrG ***

[google-appengine] Re: Critical bug in URL handling: dropping everything after a semicolon

2009-04-17 Thread Alex Popescu
On Apr 17, 8:32 pm, 风笑雪 kea...@gmail.com wrote: ; is not a valid char in url, you need encode it. from urllib import quote quote(/090314/vm-memory-in-the-cloud-watch-what-kevin-has-to-say;b.html) '/090314/vm-memory-in-the-cloud-watch-what-kevin-has-to-say%3Bb.html' Even so, the App Engine

[google-appengine] Re: Critical bug in URL handling: dropping everything after a semicolon

2009-04-17 Thread powera
On Apr 17, 2:58 pm, Alex Popescu the.mindstorm.mailingl...@gmail.com wrote: On Apr 17, 8:32 pm, 风笑雪 kea...@gmail.com wrote: ; is not a valid char in url, you need encode it. from urllib import quote quote(/090314/vm-memory-in-the-cloud-watch-what-kevin-has-to-say;b.html)

[google-appengine] Re: Critical bug in URL handling: dropping everything after a semicolon

2009-04-17 Thread Alex Popescu
On Apr 18, 1:17 am, powera pow...@gmail.com wrote: On Apr 17, 2:58 pm, Alex Popescu the.mindstorm.mailingl...@gmail.com wrote: On Apr 17, 8:32 pm, 风笑雪 kea...@gmail.com wrote: ; is not a valid char in url, you need encode it. from urllib import quote

[google-appengine] Re: App Runs Differently When Uploaded

2009-04-17 Thread djidjadji
To be a bit more precise The (html) files you use for the templates MUST NOT be static. Otherwise the template python code can't read them. You can't read the content of a static file with f = open('file.html','r') data = f.read() f.close() This is because static files are stored in a different

[google-appengine] Weird error all of a sudden

2009-04-17 Thread Jonathan-23andMe
I have been working on my app fine and then this error started appearing Wednesday in the console whenever I tried to push the Deploy button from the App Launcher console. I have done several searches and all solutions relate to windows or proxy errors, I am on OS X with no proxy. I cleared all

[google-appengine] Re: appcfg.py update_cron Server Error (500)

2009-04-17 Thread Jonathan-23andMe
I would like to second a request for this fix :) My app too starts with a didgit. On Apr 17, 6:57 am, Kai yikai.1...@gmail.com wrote: Thank for your reply, Anthony Definitely, the name of my app begins with a digit. OK, I will wait for next release. On Apr 17, 1:08 pm, Anthony  Baxter

[google-appengine] Re: Weird error all of a sudden

2009-04-17 Thread Jeff S (Google)
Hi Jonathan, This sounds suspiciously like the same issue as in this thread: http://groups.google.com/group/google-appengine/browse_thread/thread/891ce78da54b3659 Could you try changing the version number in your app.yaml? Thank you, Jeff On Apr 17, 2:41 pm, Jonathan-23andMe

[google-appengine] Transfer encoding for applets?

2009-04-17 Thread Dieter Krachtus
Hi, I would like to set the Content-Encoding for files of certain type to pack200-gzip? I would need it to increase the startup time for my applet at http://www.chartle.net Read more about it: http://java.sun.com/j2se/1.5.0/docs/guide/deployment/deployment-guide/pack200.html Quote: The

[google-appengine] Re: Weird error all of a sudden

2009-04-17 Thread Jeff S (Google)
Or as you noticed, it may be this cron issue: http://groups.google.com/group/google-appengine/browse_thread/thread/b44c9ebf910c1d97 On Apr 17, 4:37 pm, Jeff S (Google) j...@google.com wrote: Hi Jonathan, This sounds suspiciously like the same issue as in this thread:

[google-appengine] Re: Transfer encoding for applets?

2009-04-17 Thread jeremy
use the mime_type parameter for static files in the app.yaml? On Apr 17, 7:40 pm, Dieter Krachtus dieter.krach...@googlemail.com wrote: Hi, I would like to set the Content-Encoding for files of certain type to pack200-gzip? I would need it to increase the startup time for my applet

[google-appengine] Project scripts recovery

2009-04-17 Thread ehmo
Guys i did lost all my data on HDD and i want download/recovery my scripts from gae back to my computer. It's any way how to do that? Coz i've no chance to get them back from any other source. Thnx for help --~--~-~--~~~---~--~~ You received this message because

[google-appengine] Re: 500 Error uploading indexes. Need to clear indexes.

2009-04-17 Thread Jeff S (Google)
Hello, I've errored out the stuck indexes so you should now be able to vacuum them and upload new ones. Please let me know how it goes :-) Thank you, Jeff On Apr 17, 12:22 am, ssg123 ssgadm...@gmail.com wrote: I have many unneeded indexes that have been stuck in the building phase for days

[google-appengine] Re: Project scripts recovery

2009-04-17 Thread Barry Hunter
basically no. Google provide no method to do this. Try searching the archives, people have posted various scripts that can be used to help recover bits. (but dont think they can recover all) 2009/4/18 ehmo disku...@gmail.com: Guys i did lost all my data on HDD and i want download/recovery

[google-appengine] Re: Transfer encoding for applets?

2009-04-17 Thread Dieter Krachtus
hehe...I do. But mime-type is independent of Content-Encoding. The mime-type of an applet jar is always the same but can have 1 of 3 different types of Content-Encoding. Cheers, Dieter On Apr 18, 1:44 am, jeremy jeremy.a...@gmail.com wrote: use the mime_type parameter for static files in the

[google-appengine] Re: Critical bug in URL handling: dropping everything after a semicolon

2009-04-17 Thread Alex Popescu
On Apr 18, 1:43 am, Alex Popescu the.mindstorm.mailingl...@gmail.com wrote: On Apr 18, 1:17 am, powera pow...@gmail.com wrote: On Apr 17, 2:58 pm, Alex Popescu the.mindstorm.mailingl...@gmail.com wrote: On Apr 17, 8:32 pm, 风笑雪 kea...@gmail.com wrote: ; is not a valid char in

[google-appengine] Re: URI Errors... logs?

2009-04-17 Thread Matthew Blain
Be sure to check the 'request' logs. If your app returned a non-200 response code but didn't log an error, it will not show up in the 'error' logs. On Apr 17, 9:43 am, Jesse Grosjean je...@hogbaysoftware.com wrote: I'm sorry if this has been covered elsewhere, but I can't seem to find it. In

[google-appengine] Re: urlfetch and another type of communication

2009-04-17 Thread Matthew Blain
Hi Ben, Thanks for raising these, sorry if this was frustrating, it would be a good feature to expose a more specific error here. As for the status site page, indeed it was not an issue directly in app engine or urlfetch. The site we were pointing the urlfetch test to had an issue, and the

[google-appengine] Simple way to check where you app is running? (DevServer vs AppEngine)

2009-04-17 Thread Lee Olayvar
Is there a simple way to tell where your app is running? Eg, something as fast as a little bool check? (__debug__ .. if that worked) I have a lot of code that will need to be run only if the app is on a dev server instance, otherwise i'm going to have to come up with some convoluted way to wrap

[google-appengine] Re: Simple way to check where you app is running? (DevServer vs AppEngine)

2009-04-17 Thread David Symonds
On Sat, Apr 18, 2009 at 11:20 AM, Lee Olayvar leeolay...@gmail.com wrote: Is there a simple way to tell where your app is running? Eg, something as fast as a little bool check? (__debug__ .. if that worked) import os is_debug = os.environ['SERVER_SOFTWARE'].startswith('Development/') Dave.