On Tue, 2008-02-12 at 00:02 -0800, Dave Dash wrote:
> I'm getting the dreaded:
> 
> Unhandled Exception
> 
> An unhandled exception was thrown by the application.
> 
> 
> Whenever I try to access /admin on my app under nginx+fastcgi.
> 
> To be sure, I tried the development server on the same machine and /
> admin/ gave me the django admin prompt as expected.
> 
> I'm curious how to debug this.

For a start, what process is throwing an Unhandled Exception? Is it
Django (doubtful)? Or whatever Python fastcgi wrapper you are using? Or
is this "exception" not really a Python exception at all, but the same
word being used by, e.g., nginx?

Secondly, any application that throws an UnhandledException must surely
be logging the details somewhere (or the maintainer should be taken out
for a quick conversation with some of the more hefty participants at the
next conference he attends). So look in the error logs for clues.

Thirdly, try to narrow down where in the whole request-response pathway
the exception is being raised. Is any Django code being called? For
example, if you put some printing to a debug log into one of the views
of the admin app, is it printed? Or put some debugging printing into
django/core/handlers/wsgi.py to work out how far it gets there (since
that's the main wrapper function around the whole request handling).

At the moment, the only information you have is equivalent to a radio
report saying "there's a traffic jam somewhere in the city". It's not
going to help you or anybody else avoid the problem.

Hopefully that will give you some ideas.

Regards,
Malcolm

-- 
A clear conscience is usually the sign of a bad memory. 
http://www.pointy-stick.com/blog/


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to