[google-appengine] Re: Django 500's and Error Reporting
I ran into this when I ported from webapp to Django (1.0). I looked into the problem and found that adding DEBUG_PROPAGATE_EXCEPTIONS = True to settings.py solved the problem. Tony On Feb 7, 7:46 pm, Devel63 danstic...@gmail.com wrote: We wanted the i18n features (gettext, trans). On Feb 7, 2:43 pm, David Symonds dsymo...@gmail.com wrote: On Sun, Feb 8, 2009 at 4:06 AM, Devel63 danstic...@gmail.com wrote: I'll look into this, but I think one reason we went with 0.96 is that it's already included in GAE, so we don't have to upload any files, have them counted against our file count limit, etc. So why not just use the webapp framework as well, then? Is there something in particular that it doesn't do for you? Dave. --~--~-~--~~~---~--~~ 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 google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: Django 500's and Error Reporting
It didn't work for me, but gave me a clue. As part of experiment, I deleted the DEBUG=True line from settings.py, and the stack trace did start appearing in the Console window. True, it was complaining about not having an error template, but it also showed me the actual cause of the originating error. Progress! Back under the original, correct settings, I stepped through the process of raising an error, and at line 131 in debug.py the system raises an exception while raising an exception. That's why I get the silent 500 failure. On almost anything: missing variable, undefined member function, datastore put missing a required value, etc. In some circumstances it does, work though! Any ideas as to how to get stack traces to show up reliably in the browser, or even just print on the console? On Feb 8, 7:18 am, Tony Andrews crewn...@gmail.com wrote: I ran into this when I ported from webapp to Django (1.0). I looked into the problem and found that adding DEBUG_PROPAGATE_EXCEPTIONS = True to settings.py solved the problem. Tony On Feb 7, 7:46 pm, Devel63 danstic...@gmail.com wrote: We wanted the i18n features (gettext, trans). On Feb 7, 2:43 pm, David Symonds dsymo...@gmail.com wrote: On Sun, Feb 8, 2009 at 4:06 AM, Devel63 danstic...@gmail.com wrote: I'll look into this, but I think one reason we went with 0.96 is that it's already included in GAE, so we don't have to upload any files, have them counted against our file count limit, etc. So why not just use the webapp framework as well, then? Is there something in particular that it doesn't do for you? Dave. --~--~-~--~~~---~--~~ 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 google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: Django 500's and Error Reporting
On Feb 7, 4:31 am, Devel63 danstic...@gmail.com wrote: We just switched our project to using the Django 0.96 framework, and Why not Django 1.0.2? Tracebacks definitely show up correctly with that version. http://code.google.com/p/app-engine-patch/ Bye, Waldemar Kornewald --~--~-~--~~~---~--~~ 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 google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: Django 500's and Error Reporting
On Sun, Feb 8, 2009 at 4:06 AM, Devel63 danstic...@gmail.com wrote: I'll look into this, but I think one reason we went with 0.96 is that it's already included in GAE, so we don't have to upload any files, have them counted against our file count limit, etc. So why not just use the webapp framework as well, then? Is there something in particular that it doesn't do for you? Dave. --~--~-~--~~~---~--~~ 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 google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: Django 500's and Error Reporting
500 error ocurr when the web server encounter a problem that is preventing it from fufilling the request. To fix this go through troblemshoot the framework in this case. On 02/07/2009, David Symonds dsymo...@gmail.com wrote: On Sun, Feb 8, 2009 at 4:06 AM, Devel63 danstic...@gmail.com wrote: I'll look into this, but I think one reason we went with 0.96 is that it's already included in GAE, so we don't have to upload any files, have them counted against our file count limit, etc. So why not just use the webapp framework as well, then? Is there something in particular that it doesn't do for you? Dave. -- Xavier A. Mathews Student/Browser Specialist/Developer/Web-Master Client Based Tech Support Specialist Hazel Crest Illinois xavieruni...@gmail.com¥xavierunited@hotmail.com¥truestar...@yahoo.com Fear of a name, only increases fear of the thing itself. --~--~-~--~~~---~--~~ 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 google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: Django 500's and Error Reporting
We wanted the i18n features (gettext, trans). On Feb 7, 2:43 pm, David Symonds dsymo...@gmail.com wrote: On Sun, Feb 8, 2009 at 4:06 AM, Devel63 danstic...@gmail.com wrote: I'll look into this, but I think one reason we went with 0.96 is that it's already included in GAE, so we don't have to upload any files, have them counted against our file count limit, etc. So why not just use the webapp framework as well, then? Is there something in particular that it doesn't do for you? Dave. --~--~-~--~~~---~--~~ 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 google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: Django 500's and Error Reporting
On Sat, Feb 7, 2009 at 2:31 PM, Devel63 danstic...@gmail.com wrote: In the Django settings.py, we do have this set DEBUG = True TEMPLATE_DEBUG = DEBUG Any thoughts or help? See this: http://code.google.com/appengine/docs/python/tools/webapp/overview.html You pass debug=True to the WSGIApplication you make. Dave. --~--~-~--~~~---~--~~ 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 google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: Django 500's and Error Reporting
Gosh, I wish it were that simple. In fact, that's the heart of the problem. When you switch to Django, you don't make that call anymore, and instead call application = django.core.handlers.wsgi.WSGIHandler (). It doesn't accept the debug=True argument, but does have the environment variable settings I mention below. But it doesn't work 1% as well as webapp for catching errors, so I hope I'm just doing something wrong. Anyone? On Feb 6, 8:24 pm, David Symonds dsymo...@gmail.com wrote: On Sat, Feb 7, 2009 at 2:31 PM, Devel63 danstic...@gmail.com wrote: In the Django settings.py, we do have this set DEBUG = True TEMPLATE_DEBUG = DEBUG Any thoughts or help? See this:http://code.google.com/appengine/docs/python/tools/webapp/overview.html You pass debug=True to the WSGIApplication you make. Dave. --~--~-~--~~~---~--~~ 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 google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---