With mod_wsgi I only get error logged into apache and not on the interactive trackback in the browser, also If i set DEBUG=True in my settings.
Is there any way to handle the django trackback as usual?
On Wed, Nov 18, 2009 at 7:29 PM, Alessandro Ronchi <alessand...@soasi.com> wrote:
Traceback shows it is dying during the load of middleware. You would not get a pretty debug page for this even with DEBUG=True and running the development server: you'd get a bare traceback, which is what you see in the Apache log. This is code that is not covered by the exception-catching-turn-it-into-a-pretty-page try/except block. Ultimately it says (stripping out the referrer and leading timestamp, etc):
File "/var/www/vhosts/hobbygiochi.com/django/satchmo_src/satchmo/apps/livesettings/functions.py", line 67, in get_config
raise SettingNotSet('%s config group does not exist' % group),
SettingNotSet: <unprintable instance object>
I get the same problem also with an Assert False (a typical debug symbol I've used with mod_python).
http://dpaste.com/122226/
no browser and no email, only logs.
Really, you can get both pretty debug pages and emails with mod_wsgi as well as you can with the development server or mod_python. I've seen both. The problem with both exception traces you have shown is that the exception is occurring too early in the processing -- neither of these exceptions you have posted would ever result in a debug page or an error email, regardless of deployment setup.
Really, you can get both pretty debug pages and emails with mod_wsgi as well as you can with the development server or mod_python. I've seen both. The problem with both exception traces you have shown is that the exception is occurring too early in the processing -- neither of these exceptions you have posted would ever result in a debug page or an error email, regardless of deployment setup.
You're right.I dont' understand why the trackback refers to another project django source. the pythonpath is correct in django.wsgi and empty in shell.Is there something wrong?
On Thu, Nov 19, 2009 at 5:28 PM, Alessandro Ronchi <alessand...@soasi.com> wrote:
Really, you can get both pretty debug pages and emails with mod_wsgi as well as you can with the development server or mod_python. I've seen both. The problem with both exception traces you have shown is that the exception is occurring too early in the processing -- neither of these exceptions you have posted would ever result in a debug page or an error email, regardless of deployment setup.
You're right.I dont' understand why the trackback refers to another project django source. the pythonpath is correct in django.wsgi and empty in shell.Is there something wrong?as you can see here:my python path is correct, but the trackback points to another django directory.
So I guess you are looking to pull django and satchmo out of /var/www/vhosts/hobbygiochi.com/django/, not /var/www/vhosts/detectorpoint.com/django/. I'd guess the detectorpoint.com paths are already in sys.path when your wsgi script runs, and they aren't being over-ridden because you append to the existing path instead of putting the paths you are adding in front.