On Thu, Nov 19, 2009 at 11:51 AM, Alessandro Ronchi < alessandro.ron...@soasi.com> wrote:
> > > On Thu, Nov 19, 2009 at 5:28 PM, Alessandro Ronchi < > alessandro.ron...@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: > http://dpaste.com/122437/ > > my python path is correct, but the trackback points to another django > directory. > I don't see where that page shows the PYTHONPATH setting? Based on the traceback the python path apparently includes: /var/www/vhosts/detectorpoint.com/django/django_src /var/www/vhosts/detectorpoint.com/django/satchmo_src /var/www/vhosts/hobbygiochi.com/django/projects In the wsgi script you pointed to earlier you have: BASE = '/var/www/vhosts/hobbygiochi.com/django/' sys.path.append(BASE + 'projects/') sys.path.append(BASE + 'satchmo_src/satchmo/apps/') sys.path.append(BASE + 'django_src/') sys.path.append(BASE + 'libraries/') 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. Karen -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=.