2005/12/1, Afternoon <[EMAIL PROTECTED]>: > > What platform are you building on? Where is your Python? I had to > define PYTHONHOME = /usr/ in envopts for Apache because I'm running > OS X and my Python is stock but my Apache comes from the Fink project. > > Is there any way that Apache might not be able to find Python such as > this?
Well, my experiments take place on linux slackware, kernel 2.4.26. Running a simple mod_python test handler, like the one to test if mod_python installation has completed succesfully (http://www.modpython.org/live/current/doc-html/inst-testing.html), happens without problems. This make me think that apache/mod_python/python installation is fine and that the problem is in httpd.conf or in my project. So I'll post them. This is the relevant part of httpd.conf: <VirtualHost 192.168.0.68:85> DocumentRoot /home/paolo/projects/django <Location /admin/> SetHandler mod_python PythonHandler django.core.handlers.modpython PythonPath ['/home/paolo/projects/django']+sys.path SetEnv DJANGO_SETTINGS_MODULE cardano.settings </Location> </VirtualHost> and this is urlpatterns: urlpatterns = patterns('', (r'^admin/', include('django.contrib.admin.urls.admin')), ) Project cardano lives in /home/paolo/projects/django Thanks