Thanks, i tried changing <Location "C:/depot/projects/web/"> to <Location "/web/"> or <Location "/>
still no luck On May 4, 7:49 am, zayatzz <alan.kesselm...@gmail.com> wrote: > Posting because i just set up httpd.conf on linux computer few days > ago and it took me a while to get it working as i wanted to. > > If i just compare the way how i set it up and how you did it Then the > difference is that you have no pythonpath like Malcolm said and > location should be either "/web/" or "/" > > Take a look at 2nd example here :http://docs.djangoproject.com/en/dev/ > howto/deployment/modpython/ > > Thats the one i used to get it working. > > Alan > > On May 3, 8:24 am, online <online.service....@gmail.com> wrote: > > > I have mod_python set working fine with apache. > > > I have django setting as following at apache > > -------------------------------------------------------------------------------------------- > > <VirtualHost *:80> > > ServerAdmin webmas...@dummy-host2.li > > DocumentRoot "C:/depot/projects/web/" > > ServerName web > > ServerAlias *.web > > ErrorLog "logs/dummy-host2.li-error_log" > > CustomLog "logs/dummy-host2.li-access_log" common > > > <Location "C:/depot/projects/web/"> > > SetHandler python-program > > PythonHandler django.core.handlers.modpython > > SetEnv DJANGO_SETTINGS_MODULE web.settings > > PythonOption django.root "C:/depot/projects/web/" > > PythonDebug On > > </Location> > > > <Location "/media"> > > SetHandler None > > </Location> > > > <LocationMatch "\.(jpg|gif|png|css|js)$"> > > SetHandler None > > </LocationMatch> > > > </VirtualHost> > > --------------------------------------------------------------------------------------------- > > > But I always got error > > > "ImportError: Settings cannot be imported, because environment > > variable DJANGO_SETTINGS_MODULE is undefined. > > " > > > Thanks for any help! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@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=en -~----------~----~----~----~------~----~------~--~---