Re: Issues while connecting PyLucene code to Apache WSGI interface

2010-08-30 Thread technology inspired
Hi Andi, Thanks for the reply. My example runs fine when it runs alone (pure python). Here is the code: #import sys, os #sys.path.append("/home/v/workspace/example-project/src/trunk") #os.environ['DJANGO_SETTINGS_MODULE'] = 'example.settings' from lucene import Field, Document, initVM, NIOFSDirec

Re: Issues while connecting PyLucene code to Apache WSGI interface

2010-08-30 Thread technology inspired
Hi All, TJ Ninneman's solution has worked. When Python is setup with Mod_WSGI on Apache2, it is a recommeded to create a WSGI file in the application and provide it as the root in the Apache2 mod_wsgi settings. These should be called in the wsgi file at the earliest. import lucene lucene.initVM(c

Re: Issues while connecting PyLucene code to Apache WSGI interface

2010-08-30 Thread Andi Vajda
On Tue, 31 Aug 2010, technology inspired wrote: TJ Ninneman's solution has worked. When Python is setup with Mod_WSGI on Apache2, it is a recommeded to create a WSGI file in the application and provide it as the root in the Apache2 mod_wsgi settings. These should be called in the wsgi file at