On 19-jun-2007, at 0:59, Malcolm Tredinnick wrote:
>>>> It runs untill I try to load a page (from another ssh >>>> shell). And I just get the prompt back: >> >> The server hangs on the next line, 272: >> self.result = application(self.environ, self.start_response) >> and just exits, without even getting to the except: > > Query: it hangs or it exits? Since they are opposites, it can't do > both. To be precise: It sits there for about a second and then it exits. > [...] > I'd start by checking how far through AdminMediaServer.__call__ you > get. > If it gets as far as line 613, start putting traps into > WSGIHandler.__call__ to see what's going on. This is as far as I am getting: this is 'up untill', these statements are not completed. I'm trying to follow the trail of failures here: in /core/servers/basehttp.py, line 272 (ServerHandler class, run method) self.result = application(self.environ, self.start_response) in the same module, line 614 (AdminMediaHandler class, __call__ method) return self.application(environ, start_response) in /core/handlers/wsgi.py, line 184 (WSGIHandler class, __call__ method) self.load_middleware() in /core/handlers/base.py, line 29 (BaseHandler class, load_middleware method) mod = __import__(mw_module, {}, {}, ['']) (with 'django.middleware.common' as mw_module) in /middleware/common.py, line 3 from django.core.mail import mail_managers in /core/mail.py, line 4 from email.MIMEText import MIMEText I also performed the __import__ statement from core/handlers/base.py in % python manage.py shell, but this seemed to be no problem in the interactive shell. Hopefully this makes more sense to you than it does to me. I'm afraid this is as far as I will get debugging, also since the debugging process is really a pain, having to modify those permission protected modules on the server with print statements, while keeping track of the originals ;-) It's only too bad that I cannot use the python built-in Traceback functionality. best dirk --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---