> Make sure above virtual enviroment has all the necessary modules. > Your app should work in this virtual env before you continue. > Please read the page I link to on the bottom. The addsitedir should be > above sys.path.append(...your app)
The application works fine in the virtual env when started with the start_app.py script. It just doesn't work under WSGI. > >> > = > >> > '/home/uwe/Projects/BTG1.1/bin:/usr/local/python2.4.5/bin:/usr/bin:/sb > >> >in:/u sr/sbin:/usr/local/bin' > > Why are you adding sbin to your path. site.addsitedir and > sys.path.append should be enough. Well,, because it was there in the first place. I doubt it would make a difference since there's nothing python related in /sbin or /usr/sbin. > >> > os.environ['VIRTUAL_ENV'] = '/home/uwe/Projects/BTG1.1' > >> > os.environ['HOME'] = '/var/www' > >> > os.environ['LANG'] = 'en_US.UTF-8' > > What are the above for? The app should figure it out on its own?. I copied the stuff from several WSGI scripts. I have never dealt with WSGI, so I can't really tell you what those are for. The [home] seems to be important for temporary files - as for the others ...?!?!... > >> > in the app config and the application starts fine without mod_wsgi > > My guess is that you have mixed all the paths together and mod_wsgi > script doesn't know where to start looking for the toscawidget. You > need to clean up your configuration file. Actually mod_wsgi finds exactly what I want it to find. The python installation in /usr/local is specifically for this environment and has no site packages beyond plain standard install. If for example I introduce a syntax error in any of the toscawidget files the process doesn't start. So things are effectively imported, they're just not initialized. > Also read > http://lucasmanual.com/mywiki/TurboGears#head-6d3f2c73da40af50caff121f8670e >5cb75ef49b8 especially the part about virtual env setup, and the order where > virtualenv parts is located in. I'll look that up. Thanks --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "TurboGears" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/turbogears?hl=en -~----------~----~----~----~------~----~------~--~---

